Hi there,
thats an error i try to solve for quite a while already but didn't find a
solution yet.
My problem: I'm writing a little cms, that should create a folderstructure ,
so that you can put files in via ftp.
My script (simplified):
mkdir("00000031 ",0777); // creates a folder named with the id of a
database-record e.g. 00000031
chmod("00000031 ",0777); // sets the rights again to be sure, because i
experienced problems with mkdir not doing it sometimes in the past
chdir("00000031 "); // should change to the folder but leads to:
Warning: SAFE MODE Restriction in effect. The script whose uid is 611 is not
allowed to access 00000035 owned by uid 60000 in /[...]/admin/admin.php on
line 85
Its clear, the script belongs to me (user 611) but the folder belongs to the
PHPuser 60000.
The Trial to solve this using mit (chown("0000003 1",611); ) unfortunately
leads to:
Warning: chown failed: Operation not permitted in /[...]/admin/admin.php on
line 84
What can i do in order to get access to the folder, for putting more folders
and files inside?
Thanks in advance,
Christopher
thats an error i try to solve for quite a while already but didn't find a
solution yet.
My problem: I'm writing a little cms, that should create a folderstructure ,
so that you can put files in via ftp.
My script (simplified):
mkdir("00000031 ",0777); // creates a folder named with the id of a
database-record e.g. 00000031
chmod("00000031 ",0777); // sets the rights again to be sure, because i
experienced problems with mkdir not doing it sometimes in the past
chdir("00000031 "); // should change to the folder but leads to:
Warning: SAFE MODE Restriction in effect. The script whose uid is 611 is not
allowed to access 00000035 owned by uid 60000 in /[...]/admin/admin.php on
line 85
Its clear, the script belongs to me (user 611) but the folder belongs to the
PHPuser 60000.
The Trial to solve this using mit (chown("0000003 1",611); ) unfortunately
leads to:
Warning: chown failed: Operation not permitted in /[...]/admin/admin.php on
line 84
What can i do in order to get access to the folder, for putting more folders
and files inside?
Thanks in advance,
Christopher
Comment