hosted by liquidweb


Go Back   Web Hosting Talk : Web Hosting Main Forums : Programming Discussion : Please Help Me!
Reply

Programming Discussion Discussions related to web programming languages and other related issues. Topics may include configuration, optimization, practical usage and database connectivity.
Forum Jump

Please Help Me!

Reply Post New Thread In Programming Discussion Subscription
 
Send news tip View All Posts Thread Tools Search this Thread Display Modes
  #1  
Old 09-17-2002, 08:16 AM
PencWeb PencWeb is offline
Aspiring 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

Reply With Quote


Sponsored Links
  #2  
Old 09-17-2002, 09:52 AM
Joey Joey is offline
Junior 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

Reply With Quote
  #3  
Old 09-17-2002, 04:25 PM
PencWeb PencWeb is offline
Aspiring 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????

Reply With Quote
Sponsored Links
  #4  
Old 09-17-2002, 04:35 PM
Chr1s Chr1s is offline
Junior 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/

Reply With Quote
  #5  
Old 09-18-2002, 08:11 AM
PencWeb PencWeb is offline
Aspiring 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

Reply With Quote
  #6  
Old 09-18-2002, 12:19 PM
Myth_Pharoah Myth_Pharoah is offline
Newbie
 
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...

Reply With Quote
  #7  
Old 09-18-2002, 08:14 PM
PencWeb PencWeb is offline
Aspiring 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

Reply With Quote
  #8  
Old 09-20-2002, 02:49 AM
turnball turnball is offline
Newbie
 
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.

Reply With Quote
  #9  
Old 09-20-2002, 06:58 PM
PencWeb PencWeb is offline
Aspiring Evangelist
 
Join Date: Mar 2001
Posts: 351
Quote:
Originally posted by turnball
ask your host to disable safe_mode (unlikely) or request that they add the directory to their base_dir.
Thanks man. Do you know if those 2 options are my ownly choices? I thought maybe there was a function or two that could temporarily disable the safe mode.

- Shawn

Reply With Quote
Reply

Related posts from TheWhir.com
Title Type Date Posted


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes
Postbit Selector

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump
Login:
Log in with your username and password
Username:
Password:



Forgot Password?
Advertisement:
Web Hosting News:



 

X

Welcome to WebHostingTalk.com

Create your username to jump into the discussion!

WebHostingTalk.com is the largest, most influentual web hosting community on the Internet. Join us by filling in the form below.


(4 digit year)

Already a member?