Hi,
I was hoping someone can help me.
There are various threads about listing FILES withtin a directory.
Files & Subdirectories with a directory.
But, i was wondering if someone can tell me how to list JUST DIRECTORIES in a directory.
Help is appreciated.
Thanks in advance.
FYI: I'm using the following code. This code works like a charm for Files & Directories with in a directory.
<?
if ($handle = opendir('/home/yuckyuck/public_html/'))
{
while (false !== ($file = readdir($handle)))
{
if ($file != "." && $file != "..")
{
echo "$file<br>";
}
}
closedir($handle);
}
?>