Board index   FAQ   Search  
Register  Login
Board index PHP PHP Scripts

Display Images in Date Order??

Links for php scripts

Moderators: macek, egami, gesf

Postby swirlee » Wed May 26, 2004 7:35 pm

You're on the right track. What you'll want to do is use the filemtime() function to get the last-modified time for each file, and build an associative array wherein the filenames are the keys and the modified-times are the values (in UNIX format, a la strtotime()). Then you can sort the array by value.
User avatar
swirlee
Moderator
Moderator
 
Posts: 2272
Joined: Sat Jul 05, 2003 1:18 pm
Location: A bunk in the back

Return to PHP Scripts

Who is online

Users browsing this forum: No registered users and 1 guest

Sponsored by Sitebuilder Web hosting and Traduzioni Italiano Rumeno and antispam for cPanel.

cron