I’m trying to open a dir from inside a function and i always get this error:
failed to open dir: Resource temporarily unavailable
this is the function, line of error marked in red:
function rrmdir($dir)
{
[COLOR="#FF0000"]$fp = opendir($dir);[/COLOR]
if ($fp)
{
while ($f = readdir($fp))
{
$file = $dir . '/' . $f;
if ($f == '.' || $f == '..')
continue;
else if (is_dir($file) && !is_link($file))
rrmdir($file);
else
unlink($file);
}
closedir($fp);
rmdir($dir);
}
}
what does it means and how can i solve that?