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

kasimir-k kasimir.k.lists at gmail.com
Tue Mar 13 10:13:14 CDT 2007

Stephen Rider scribeva in 13/03/2007 14:37:
> 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.

In addition to the already mentioned readdir, if you are on PHP5 you can
use scandir to get the file names in an array: http://php.net/scandir


More information about the thelist mailing list