Hey all,
I have no idea how to display folders on my webserver. I can display a list of all the FILES in a folder, but not the actual folders in the folder.... here's an example of the structure:
root
.... folder 1
.... folder 2
.... file1.htm
.... file2.htm
.... file3.htm
.... file4.htm
.... file5.htm
.... file6.htm
etc etc
So the above files are displayed using the following code:
$directory = opendir("$path");
while($filename = readdir($directory))
{
print $filename & "<BR>";
}
closedir($directory);
the above code would display like this....
.... file1.htm
.... file2.htm
.... file3.htm
.... file4.htm
.... file5.htm
.... file6.htm
but what I want is the folders to be shown as well. This way the folders can be hyperlinked so when clicked they will open in a new window and the contents of them will be displayed like above.
Is this possible??
Many thanks in advance,
Matt Facer. :p