copy(): SAFE MODE Restriction in effect

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
asterinex
Forum Commoner
Posts: 52
Joined: Thu Nov 25, 2004 7:01 am
Location: Belgium

copy(): SAFE MODE Restriction in effect

Post 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
Post Reply