You are here: Re: [PHP] PHP safe_mode « PHP « IT news, forums, messages
Re: [PHP] PHP safe_mode

Posted by Richard Lynch on 10/20/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]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация