|
Posted by Richard Lynch on 11/10/19 11:14
On Tue, April 26, 2005 6:48 am, kioto said:
> Hi all i have problem with safe_mode i don't understand the logic to
> apply to avoid owners
> problem with script.
> Can you step by step ho to solve ?
http://php.net/features.safe-mode
may have your answer.
Be sure to read the User Contributed notes.
The basic premise of "safe mode" is that your PHP script should only open
up files that are owned by the same OS UserID as the owner of the script.
EG:
ls -als
.... kioto my_script.php
.... kioto my_data.txt
.... root secret_data.txt
Your script can open up my_data.txt, because you own both files.
But you can't open up secret_data.txt, because it is *NOT* owned by the
owner of the my_script.php
You can relax things a bit and make "safe mode" apply to GroupIDs instead
of OwnerIDs, if that helps you in your situation.
--
Like Music?
http://l-i-e.com/artists.htm
Navigation:
[Reply to this message]
|