Simple question, hopefully has a simple answer.
I have a directory ($someDir) with the contents...
.
..
dir1
text.txt
dir2
and when running the following code...
$dir = dir( $someDir );
while( $File = $dir->read() )
{
if( is_dir( $File ) ) { $dirList[] = $File }
}
print_r( $dirList )
I get an output like this...
Array
(
[0] => .
[1] => ..
)
why does it seem to not recognize the other folders as directories?