Re: overriding register_globals
| From: | CPT John W. Holmes | Date: | Tue, 15 Apr 2003 15:30:53 +0000 |
| Subject: | Re: overriding register_globals | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-143960@lists.php.net to get a copy of this message | ||
> > Is there anyway to override register_globals seeting in php.ini from php
> > code?
>
> search the php website for a function called ini_set()
> (also in the archives..)
You can't change the register_globals setting with ini_set().
Use an .htaccess file to change it for your site.
php_value register_globals 0/1
Put that line in an .htaccess file with 0 for off, 1 for on.
Can't remember if it's php_value or php_flag and searching on the PHP site
isn't working right now. You can use both, actually. One needs a zero/one
value and the other you can use ON/OFF values. I can't remember which is
which, though. Hopefully you get the idea.
---John Holmes...