RE: [PHP] sorting files in directory

From: Date: Wed, 27 Nov 2002 13:49:14 +0000
Subject: RE: [PHP] sorting files in directory
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-126274@lists.php.net to get a copy of this message
I've done this by reading the directory contents into an array and then sorting that array. This really sorts on filename and not date, but your filenames seem to contain dates so this might work for you. James Hicks -----Original Message----- From: Nick Wilson [mailto:nick@tioka.com] Sent: Wednesday, November 27, 2002 8:02 AM To: php-general Subject: [PHP] sorting files in directory Hi all, I have several directories filled with files written like this: * 02-09-19-filename.etc * 02-10-02-anotherfile.whatever How does php order these files if read from the directory and printed to the screen? -- I need them in date order, do I need to sort them somehow? Many thanks... -- Nick Wilson // www.tioka.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

« previous php.general (#126274) next »