[thelist] PHP- get list of files in directory?

Christian Heilmann codepo8 at gmail.com
Tue Mar 13 10:32:25 CDT 2007


> > [snip]
> > Is there a way to get a list of files in a particular directory using
> > PHP?  I would preferably like to end up with an array containing the
> > name of each file found.
> > [/snip]
> >
> > Have you Read The Fine Manual? http://www.php.net/readdir
>
> Didn't know what function to read up on!  PHP n00b walking, here.
>
> Thanks to Jay and Rick.
>
> Stephen

Don't worry about it. I found myself numerous times writing functions
in PHP that turned out to be native if I just had bothered reading the
manual :-)

-- 
Chris Heilmann
Book: http://www.beginningjavascript.com
Blog: http://www.wait-till-i.com
Writing: http://icant.co.uk/



More information about the thelist mailing list