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