Nalcolmjean
22.01.2013, 08:12:28
How to write a PHP coding to list out all files and directories as links to them?
Sephirus
22.01.2013, 08:31:58
$directoryPath = '/path/to/directory/with/files/';
$wwwPath = 'http://www.sitename.com/files/';
foreach(glob($directoryPath . '*') AS $file) { }
If i understood U properly
viking
22.01.2013, 10:09:00
You may also be interested in SPL extension
http://php.net/manual/en/book.spl.php Please refer to the examples inside documentation of DirectoryIterator, FilesystemIterator etc.