Over a million developers have joined DZone.

PHP Script For Listing Files In A Given Directory

http://uk2.php.net/scandir returns a list of all files in a directory into an array. You can then use a foreach statement to print each one out: 

echo $value; //You could add an icon in here maybe, a link to the file/directory, or a link to list files in that directory

{{ parent.title || parent.header.title}}

{{ parent.tldr }}

{{ parent.urlSource.name }}