You are here: Re: Is there a php function for returning all files in a directory on a web site? « PHP Language « IT news, forums, messages
Re: Is there a php function for returning all files in a directory on a web site?

Posted by Rik on 04/27/07 22:00

Floortje wrote:
> Woody W schreef:
>> Is there a php function for returning all files in a directory on a
>> web site?
>>
> Woody, there is not a function that will read all the files on a WEB
> dir. Apache (or another web server) handles the viewing of files on a
> web dir and mostly dir listing is denied.
>
> But your question probably was if there is a php function that can
> return all files in YOUR web dir. Well woody :-) there is !
>
> http://www.php.net/readdir
>
> Check the example iirc

If you need them all, glob() might be a little less cumbersome.

--
Rik Wasmus

Estimated date being able to walk again: 01-05-2007.
Less then a week, hurray!

 

Navigation:

[Reply to this 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

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