Sorting Direcroty file by filemtime()
Posted: Tue Dec 02, 2003 1:40 pm
Hello,
Im trying to list the contents of a directory sorting the file by the time they were uploaded...so i used the modified time to base this.
My theory would be to set and array of the files and set the key to be the filetime() of the file. then do a krsort() to sort by unixt time stamp in descending order...
is this an appropriate step in sorting files by the time they were uploaded?
Any suggestions on another approach?
Kendall
Im trying to list the contents of a directory sorting the file by the time they were uploaded...so i used the modified time to base this.
My theory would be to set and array of the files and set the key to be the filetime() of the file. then do a krsort() to sort by unixt time stamp in descending order...
is this an appropriate step in sorting files by the time they were uploaded?
Any suggestions on another approach?
Kendall