I want to display all the folders present from 1 folder, it works fine and gives me . and .. as directory listing which is not good. The code is as follows:
$path = "../cuz";
$img = opendir($path);
while($file = readdir($img))
{
if(is_dir($file))
{
echo "Folder name is ". $file;
}
}
closedir($img);