View Single Post
Old 04-03-2008, 08:45 PM   #2 (permalink)
sunken
Field Master
 
sunken's Avatar
 

Join Date: Sep 2007
Posts: 544
iTrader: 0 / 0%
Hunter Bux: 0
sunken is on a distinguished road
Default

There are commands to read a directory in PHP...

$dirname='/home/dir-to-read';

if ($handle = opendir($dirname)) {
while (false !== ($filename = readdir($handle))) {
echo($filename."\n");
}
closedir($handle);
}

Would load and print a list on the page. Of course you'd probably want to do some formatting rather than just an echo. You can put whatever code you want there.

Last edited by sunken; 04-03-2008 at 08:47 PM.
sunken is offline   Reply With Quote