Re: Directory Listing with php on unix boxes
| From: | Krzysztof Dziekiewicz | Date: | Wed, 08 Jan 2003 09:16:35 +0000 |
| Subject: | Re: Directory Listing with php on unix boxes | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-130728@lists.php.net to get a copy of this message | ||
> Here is where I'm running into some problems. I need the file listing to be
> sorted as if I were performing an 'ls -lt' listing on the server itself.
I do not think opendir() or readdir() quarantees any sort. You where
lucky rather you got dirs in the time order. You should use
filemtime() or something like this to sort dirs.
--
Krzysztof Dziekiewicz