hi, i'm using opendir( ) to create resource to a directory, and readdir( ) thereon to read the files one by one. I then add the file info into a database, and they are listed back in the very order that they were added. This order is a must-have.
But because of some odd reason, the files are not being added either
- alphabetically
- date and time of uploading
This is defeating my purpose. Moreover, it seems completely random. Why is this so? Is it something with Apache. Or does it depend on the OS my webhost is running on? I'm using apache on windows, and smething like this never occurred on my side.