Re: opendir() in safe mode
From: Jeremy Shovan (jeremys013_at_foundationx.com)
Date: 06/25/04
- Next message: Michael Austin: "PHP/MySQL/Apache Documentation."
- Previous message: Michael Austin: "Re: opendir() in safe mode"
- In reply to: Michael Austin: "Re: opendir() in safe mode"
- Next in thread: Michael Austin: "Re: opendir() in safe mode"
- Reply: Michael Austin: "Re: opendir() in safe mode"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Thu, 24 Jun 2004 17:46:05 -0700
Michael Austin wrote:
> Jeremy Shovan wrote:
>
>> What do I need to change to use the opendir() function when safe mode
>> is in affect??
>> I have root access to the server and can make any changes neccessary
>> except turn safe mode off
>>
>> Thanks in advance,
>> Jeremy
>
>
> who is the owner of the web server process? I could be wrong, but make
> sure the process owner has access to the directory you are trying to
> open. (ie in the same group, etc...)
>
> (but I am not wrong: see:
>
> go to the PHP site and search for "safe mode opendir" in the "online
> docs"
>
> and you will find:
>
> http://www.php.net/rmdir
> ....
> "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."
>
> Michael Austin.
Thanks for the reply. I understand that much but my problem is that I
need scripts with different uid's to access the directory that I am
opening. The code is used with several sites on the server. I read the
documentation already but I dont quite understand what to do. I set the
safe_mode_include_dir and safe_mode_exec_dir in the php.ini file but
that didn't work.
Jeremy
- Next message: Michael Austin: "PHP/MySQL/Apache Documentation."
- Previous message: Michael Austin: "Re: opendir() in safe mode"
- In reply to: Michael Austin: "Re: opendir() in safe mode"
- Next in thread: Michael Austin: "Re: opendir() in safe mode"
- Reply: Michael Austin: "Re: opendir() in safe mode"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|