Linux 2.6.37.1-1.2-desktop x86_64
php 5.3.5-5.12.1
CODE:
$diren = $dirarray[$i];
if ($testing) { echo "diren = ".$diren."<br />"; }
try {
$iterator = new DirectoryIterator($diren);
} catch (Exception $e) {
echo 'Caught exception: ', $e->getMessage(), "<br />";
}
RESULT:
diren = /srv/www/htdocs/ahon/includes
Caught exception: DirectoryIterator::__construct(/srv/www/htdocs/ahon/includes ): failed to open dir: No such file or directory
diren = /srv/www/htdocs/ahon/includes/database
Directories do exists.
Anyone who can explain or help me solve the problem????