chdir permission issues!!!

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
portalguy
Forum Newbie
Posts: 2
Joined: Thu May 22, 2003 11:58 am

chdir permission issues!!!

Post 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!!!
User avatar
twigletmac
Her Royal Site Adminness
Posts: 5371
Joined: Tue Apr 23, 2002 2:21 am
Location: Essex, UK

Post by twigletmac »

Did you restart the webserver after making changes to the php.ini?

Mac
portalguy
Forum Newbie
Posts: 2
Joined: Thu May 22, 2003 11:58 am

Post by portalguy »

yes i did
Post Reply