Re: safe_mode
| From: | John Hicks | Date: | Sat, 20 May 2006 01:01:01 +0000 |
| Subject: | Re: safe_mode | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-236546@lists.php.net to get a copy of this message | ||
tedd wrote:
Hi gang: Please excuse me for asking another dumb-ass question, but here goes. I'm finding that setting safe_mode to ON is more difficult than I first thought. In my phpinfo, safe_mode is set to OFF However, if I try to set it to ON in my ".htaccess" such as: php_value safe_mode 1 It doesn't work. If I set it in my code, such as: ini_set( 'safe_mode', '1' ); It still doesn't work.You would think the fine manual would explain this here: http://us3.php.net/manual/en/features.safe-mode.php Table 42-1. Security and Safe Mode Configuration Directives Name: safe_mode Default: "0" Changeable: PHP_INI_SYSTEM but you have to look here http://us3.php.net/manual/en/ini.php to find just what PHP_INI_SYSTEM means: Table G-2. Definition of PHP_INI_* constants Constant: PHP_INI_SYSTEM Value: 4 Meaning: Entry can be set in php.ini or httpd.conf i.e. *not* in .htaccess or by ini_set() --John