note 27183 deleted from configuration.directives by sniper
| From: | sniper@php.net | Date: | Tue, 04 Nov 2003 00:46:35 +0000 |
| Subject: | note 27183 deleted from configuration.directives by sniper | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-59835@lists.php.net to get a copy of this message | ||
Note Submitter: ianyates at yahoo dot com
----
Turning 'register_globals' off.
It probably is somewhere in this manual... but I couldn't find it.
Basically, you can't use ini_set() once you're in your PHP file because the globals have
already been registered.
One solution I was forced to implement was a loop through all variables to unset everything except
for the super arrays.
Ideally you need .htaccess abilities (check with your host) and use the lines below:
<IfModule mod_php4.c>
php_value register_globals "no"
</IfModule>
You can change any (as far as I know) PHP configuration variable using this.
Much easier than ini_set() in my humble opinion.
Hope it helps someone