Re: Listing directory, return none if only one file

From: Date: Thu, 24 Mar 2005 13:48:49 +0000
Subject: Re: Listing directory, return none if only one file
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-211460@lists.php.net to get a copy of this message
Hi, Thursday, March 24, 2005, 8:15:11 PM, you wrote: AM> I have a script that lists the files in a directory, but when i have AM> only ONE file , it won't display it ( here is the code : AM> http://www.pastebin.com/262050 ) After you sort the $filename array its index changes from 1 to 0 so your $i is 1 ahead of the array. -- regards, Tom

« previous php.general (#211460) next »