I made this PHP script using a lot the function readdir(). I’m not happy with the order in which the files are displayed. I was trying to find out the logic of this order and found out at www.php.net that “The filenames are returned in the order in which they are stored by the filesystem.”
I was wondering if there is any way to change this for the filesystem to display the folders by last modified.
Thanks for your help.
Mateo
I was wondering if there is any way to change this for the filesystem to display the folders by last modified.
Thanks for your help.
Mateo
but you would then sort that array by checking the file modified dates using filemtime()
Comment