Re: Listing directory, return none if only one file

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux