PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
I'm using this code that I put to gether to list the files in a directory on my server, it works just how I want it except that it returns the list of files in Numerical and alphabetical order. How do I sort the file list into the date order, the files were added to the server?
Use filectime() to get the time/date the file was created (this should also cover time of addition I think, as it is 'created'), also see fileatime and filemtime linked of the left of that there page.