sco 5.0.5 readdir always fails
| From: | Arno A. Karner | Date: | Thu, 07 Dec 2000 23:44:28 +0000 |
| Subject: | sco 5.0.5 readdir always fails | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-40510@lists.php.net to get a copy of this message | ||
$hDir = opendir(".");
echo"opendir $hDir";
while($Fil = readdir($hDir))
{
echo"readdir $Fil";
if($Fil==".") continue;
if($Fil=="..") continue;
}
echo"closedir $hDir";
closedir($hDir);
?>
prints opendir Rescorce Id #3 or some such stuff
prints closedir Resource Id #3
since the script opens the dir its in, it has passed permission checks
and should be at least able to read ., .., and itself
--
My opinions are my own and not that of my employer even if I am self
employed