Code solutions to PHP, JS, CSS

Spread your code soluces to the world

Love me

Search results for : past    (2)

Display natural human dates for past dates (php)

Little function to display past dates with a natural human language as on iphone based messages. It can write dates : now, 5mn ago, today at 12:18, yesterday at 08:20, monday at 21:12, 3 november at 12:18 (modify function for english users), 24 december 2013 at 23:59
solucior.com/39-Display_natural_human_dates_for_past_dates.html

PHP watermark (php gd image)

This script applies a watermark on a JPG, GIF or PNG image. The watermark comes from a 24-bit PNG that preserve empty areas around the logo. I recommend Photoshop to make it. This is the only script that changes the opacity of an image before pasting to another. For indeed, PHP5 and GD2 library does not own filter opacity. Operation is simple....
solucior.com/36-PHP_watermark.html