faqts : Computers : Programming : Languages : PHP : Installation and Setup : Security

+ Search
Add Entry AlertManage Folder Edit Entry Add page to http://del.icio.us/
Did You Find This Entry Useful?

15 of 20 people (75%) answered Yes
Recently 6 of 10 people (60%) answered Yes

Entry

Can safe mode be used on a per directory basis?
How can I give my web server users access to only PHP in safe mode?

Jul 24th, 2000 09:39
Pis Daboi, Nathan Wallace, Rasmus Lerdorf


You can turn on php's safe_mode on a per-directory basis.  Simply put
'php3_safe_mode On' in the appropriate directory blocks in your
httpd.conf file.

If you are using PHP4 just use 'php_flag safe_mode On' instead