Reply to Re: [PHP] Listing directory, return none if only one file

Your name:

Reply:


Posted by Tom Rogers on 03/24/05 15:48

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

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация