Code solutions to PHP, JS, CSS

Spread your code soluces to the world

Love me

Search results for : natural    (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

Simple method : listing files from a directory (php)

Here's my simple method for listing files from a directory. In this example I added the natural sort and the file sizes in KB to show how to combine tables and serialized values.
solucior.com/8-Simple_method___listing_files_from_a_directory.html