Links for php scripts
1 post • Page 1 of 1
- Posts: 2257
- Joined: Sat Jul 05, 2003 1:18 pm
- Location: A bunk in the back
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.