Menu
hello
I have this code to display all of the files in a directory.
But if there is a folder in the directory it will not display, is there a way to make the folder display?
Thanks
[code=php]
<?php
$files = glob(“{$_SERVER[‘DOCUMENT_ROOT’]}/websites/MY 2006/*.*”);
if(count($files) > 0)
{
echo “<h3>Backup Files for my.com 2006:</h3>n<ul>n”;
foreach($files as $path)
{
$file = basename($path);
echo “<li><a href=’http://my.com/websites/my 2006/$file’>$file</a></li>n”;
}
echo “</ul>n”;
}
?>