Page 1 of 1

copy(): SAFE MODE Restriction in effect

Posted: Fri Jul 08, 2005 3:37 pm
by asterinex
Hello everyone,

note : the define BLOG_ROOT_PATH is my full path /srv/www/.....

I have following problem :

I'm writing a Blog website. Wenn a new member signs in. I want to create a directory with his username . So far no problem.

Code: Select all

mkdir (BLOG_ROOT_PATH.$directory, 0777);

I have a directory owned by 30.
Now I need to make a new index.php file and copy it into the new directory.

Here starts the problem . I get following error
copy(): SAFE MODE Restriction in effect. The script whose uid is 20136 is not allowed to access /srv/www/.... owned by uid 30

Code: Select all

copy (BLOG_ROOT_PATH.&quote;index.php&quote;,BLOG_ROOT_PATH.$directory.&quote;/index.php&quote;);

Can somebody help me ?


Thanks in advance,

Gert