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]
|