not listing all directorys
Posted: Mon Nov 02, 2009 12:09 am
Code: Select all
if ($dh = opendir("downloads/"))
{
while ($file = readdir($dh))
{
if(is_dir($file))
{
if (($file <> ".") && ($file <> ".."))
{
echo $file;
}
}
}
closedir($dh);
}