Re: How to set register_globals=off in the script?
| From: | Jason Barnett | Date: | Tue, 21 Dec 2004 21:08:31 +0000 |
| Subject: | Re: How to set register_globals=off in the script? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-204882@lists.php.net to get a copy of this message | ||
Jerry Swanson wrote:
I know that "register_globals = on" is not secure. But one program requires to use register_globals=on. So in php.ini register_globals is set to on. I have PHP 5.1, is it possible in the code set register_globals=off for specific scripts. So I want to keep PHP register_globals=on in php.ini, but in local files set to off? How I can do this?You can change this, and other php.ini directives, with the PHP function ini_set