Connecting Tech Pros Worldwide Help | Site Map

safe mode

  #1  
Old July 17th, 2005, 09:40 AM
md
Guest
 
Posts: n/a
hi!
I have a problem with my php script.
In this script I create a directory. When I then try to
enter this directory (for example read its contens)
I get an error like:
Warning: SAFE MODE Restriction in effect. The script whose uid is XXX is not allowed to access
/home/students/... owned by uid YYY in /home/students/...
(edited)

In manual for chdir its written:
"Note: When safe mode is enabled, PHP checks whether the directory in which you are about to operate
has the same UID (owner) as the script that is being executed."

So : my script has my UID and created dir has UID of httpd.
What to do in order to be able to read and write to this dir?

Safemode is enabled but I cannot change it.

TIA
md
  #2  
Old July 17th, 2005, 09:40 AM
md
Guest
 
Posts: n/a

re: safe mode


> I have a problem with my php script.[color=blue]
> In this script I create a directory. When I then try to
> enter this directory (for example read its contens)
> I get an error like:
> Warning: SAFE MODE Restriction in effect. The script whose uid is XXX is
> not allowed to access /home/students/... owned by uid YYY in
> /home/students/...
> (edited)
>
> In manual for chdir its written:
> "Note: When safe mode is enabled, PHP checks whether the directory in
> which you are about to operate has the same UID (owner) as the script
> that is being executed."
>
> So : my script has my UID and created dir has UID of httpd.
> What to do in order to be able to read and write to this dir?
>
> Safemode is enabled but I cannot change it.[/color]


I already found the solution to my problem - but let me know if you know a better way for this:

http://ilia.ws/archives/18_PHPs_safe..._security.html

md
  #3  
Old July 17th, 2005, 09:45 AM
Tim Tyler
Guest
 
Posts: n/a

re: safe mode


md <i.like.spam@interia.pl> wrote or quoted:
[color=blue]
> http://ilia.ws/archives/18_PHPs_safe..._security.html[/color]

What a winge! ;-)
--
__________
|im |yler http://timtyler.org/ tim@tt1lock.org Remove lock to reply.
Closed Thread


Similar Threads
Thread Thread Starter Forum Replies Last Post
SAFE MODE,fopen, and chmod Joseph S. answers 2 January 30th, 2006 03:45 AM
safe mode / directories Paul Schmidinger answers 2 July 17th, 2005 10:16 AM
opendir() in safe mode Jeremy Shovan answers 3 July 17th, 2005 07:43 AM
safe mode and passthru Yemi answers 0 July 17th, 2005 06:39 AM
mail() - fifth parameter in SAFE MODE Giobibo answers 1 July 17th, 2005 06:02 AM