Hello,
can someone make light on this please :
i have a path to a dir:
the output is :
when i create a new DirectoryIterat or like this :
and ask php if it is a directory, it says its not!
the output is :
and
output is a FILE!!
can someone make sense to this?
thanks for your help
can someone make light on this please :
i have a path to a dir:
Code:
$path = "/var/www/Tests"; echo $path;
Code:
/var/www/Tests
Code:
$dirIt = new DirectoryIterator($path);
Code:
if (!$dirIt->isDir()) { echo "This is not a directory!"; }
Code:
This is not a directory!
Code:
print_r($dirIt);
Code:
DirectoryIterator Object ( [pathName:SplFileInfo:private] => /var/www/Tests/enginecartelmania.php [fileName:SplFileInfo:private] => enginecartelmania.php [glob:DirectoryIterator:private] => [subPathName:RecursiveDirectoryIterator:private] => )
thanks for your help
Comment