Page 1 of 1

chdir permission issues!!!

Posted: Thu May 22, 2003 11:58 am
by portalguy
I'm trying to create a directory and then subdirectory but i get permission error for chdir :x

<?php
mkdir ("test", 0777);
chmod ("test", 0777);
chdir("test");
mkdir("subtest",0777);
chmod ("subtest", 0777);
?>

I get the following warning 8O
Warning: chdir() [function.chdir]: SAFE MODE Restriction in effect. The script whose uid is 504 is not allowed to access test owned by uid 48 in /home/virtual/site2/fst/var/www/html/ahmed/safetest/test.php on line 4

i have disabled safe mode for the site and tried disabling it for the server!!!

Posted: Fri May 23, 2003 1:55 am
by twigletmac
Did you restart the webserver after making changes to the php.ini?

Mac

Posted: Fri May 23, 2003 9:33 am
by portalguy
yes i did