Page 1 of 1

not listing all directorys

Posted: Mon Nov 02, 2009 12:09 am
by psychotomus

Code: Select all

 
if ($dh = opendir("downloads/")) 
{
    while ($file = readdir($dh))
    {
        if(is_dir($file))
        {
            if (($file <> ".") && ($file <> ".."))
            {
                echo $file;
            }
        }
    }
    closedir($dh);
}
i have like 15 directorys in downloads directory. it only shows like 5. why?