note 37558 added to function.opendir
| From: | micklweiss at gmx dot net | Date: | Wed, 19 Nov 2003 18:12:31 +0000 |
| Subject: | note 37558 added to function.opendir | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-60633@lists.php.net to get a copy of this message | ||
I ran into a little snag in example 1. opendir() lists files by the last time the file was accessed.
I was trying to print the files numerically in a directory.
Solution: Use scandir() instead (php5) or store the files in an array and sort it.
Hope this helps someone.
- Mick
(o> Web / software developer
( ) UNIX Systems Admin
--- ~ www.mickweiss.com ~
----
Manual Page -- http://www.php.net/manual/en/function.opendir.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+37558
Delete -- http://master.php.net/manage/user-notes.php?action=delete+37558&report=yes
Reject -- http://master.php.net/manage/user-notes.php?action=reject+37558&report=yes
Search -- http://master.php.net/manage/user-notes.php