grrrrr.....
I'm trying in vain to figure out this SAFE MODE thing..
Here is a silly script that I'm running to test opendir()
I keep getting
"SAFE MODE Restriction in effect. The script whose uid is 10241 is not allowed to access /usr/local/4admin/apache/vhosts/my-site.com/httpdocs/images/11 owned by uid 2527 in /usr/local/4admin/apache/vhosts/my-site.com/httpdocs/open.php on line 7"
<?php
if(!(mkdir("/usr/local/4admin/apache/vhosts/my-site.com/httpdocs/images/11", 0777))){
echo "couldn't create directory <br>";
}else{
chmod( "/usr/local/4admin/apache/vhosts/my-site.com/httpdocs/images/11", 0777);
}
if (!($open = opendir("/usr/local/4admin/apache/vhosts/my-site.com/httpdocs/images/11"))){
echo "failed";
}else{
echo "OK";
}
?>
Now, the directory IS created, but the script can't open it.
Any suggestions would be greatly appreciated!