Results 1 to 9 of 9
Thread: Please Help Me!
Hybrid View
-
09-17-2002, 08:16 AM #1Aspiring Evangelist
- Join Date
- Mar 2001
- Posts
- 351
Please Help Me!
Ok now the following error happens because I want to write to a file I have created and CHMOD to 777, but it gives me this error instead What are the numbers "10003" and "2525" suppose to mean? I don't know if I'm getting this error because I am basically creating a file in 3 directories ahead of where the script is held. But I really need help on this, please!
Warning: SAFE MODE Restriction in effect. The script whose uid is 10003 is not allowed to access boards/topics/Socializing/Please work!+data owned by uid 2525 in /usr/local/psa/home/vhosts/penchosting.com/httpdocs/my1bb/topic.php on line 199
- Shawn
-
09-17-2002, 09:52 AM #2Junior Guru
- Join Date
- Dec 2001
- Posts
- 186
Are the files owned by the same people? You may want to "chown nobody:nobody blah" where blah is the file that you're writing to. Sounds like the file is owned by a different user, although that shouldn't matter if it's 777.
Kinda strange. Could you show some ls output of both files?
Thanks.- joey
-
09-17-2002, 04:25 PM #3Aspiring Evangelist
- Join Date
- Mar 2001
- Posts
- 351
What do you mean owned by the same person?
I can create the file with touch(), but then I can't chmod it, nor write to it, but all the directories leading up to it have permissions to 777, so it SHOULD work, but it doesn't.
Please anyone????
-
09-17-2002, 04:35 PM #4Junior Guru Wannabe
- Join Date
- Sep 2002
- Location
- Canada
- Posts
- 35
You could manually CHMOD it by FTP
EZScripts - Quality PHP Scripts, Low Price (includes Custom Scripting on request.)
http://www.EZScripts.net/
-
09-18-2002, 08:11 AM #5Aspiring Evangelist
- Join Date
- Mar 2001
- Posts
- 351
That's quite impossible, because this script is a Bulletin Board, and I can't always chmod new topifcs
I have to use the chmod function, or else I can't write to it, and if I can't write to it, then the file will be 0kb, and if the file is empty, then it can't quite be chmod via FTP.
Please help me someone
- Shawn
-
09-18-2002, 12:19 PM #6Newbie
- Join Date
- Sep 2001
- Location
- Pune, Maharashtra, India.
- Posts
- 24
Erm... I'm not too sure but SAFE MODE Restriction in effect usually means that many of the file functions are desabled like fopen, fwrite, etc. Oh and CHMOD never works. I've tried soo many things but it never works. Unless you want to use Shell Commands...
-
09-18-2002, 08:14 PM #7Aspiring Evangelist
- Join Date
- Mar 2001
- Posts
- 351
Well I can chmod files just fine, just not in a case where the file is in 3 directories away, it has to be like 1 away, or the same directory the script I am executing is in.
Thanks for trying to help, anyone else got any idea?
- Shawn
-
09-20-2002, 02:49 AM #8Newbie
- Join Date
- May 2002
- Posts
- 6
ask your host to disable safe_mode (unlikely) or request that they add the directory to their base_dir.
-
09-20-2002, 06:58 PM #9Aspiring Evangelist
- Join Date
- Mar 2001
- Posts
- 351
Originally posted by turnball
ask your host to disable safe_mode (unlikely) or request that they add the directory to their base_dir.
- Shawn