note 15257 added to class.dir
| From: | nick at priceenterprises dot freeserve dot co dot uk | Date: | Mon, 03 Sep 2001 19:23:14 +0000 |
| Subject: | note 15257 added to class.dir | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-17567@lists.php.net to get a copy of this message | ||
Regarding the sort order...
Under *nix, files are placed in the file system in the order that they are created. Therefore, you
get the oldest first.
Under NTFS, files are *always* stored in the file system in alphabetical order, no matter what the
creation date.
So, when the read() command pulls the next file, it merely depends on your file system. FAT32
servers probably give a slightly random order, NTFS servers give alphabetical, and *nix servers give
date order.
Hope that clears things up for you all!
http://www.php.net/manual/en/class.dir.php