[PHP] Re: How to set register_globals=off in the script?

2004-12-21 Thread Jason Barnett
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

Re: [PHP] Re: How to set register_globals=off in the script?

2004-12-21 Thread John Holmes
From: Jason Barnett [EMAIL PROTECTED] Jerry Swanson wrote: I have PHP 5.1, is it possible in the code set register_globals=off for specific scripts. You can change this, and other php.ini directives, with the PHP function ini_set No, you can't. register_globals cannot be set with

RE: [PHP] Re: How to set register_globals=off in the script?

2004-12-21 Thread Michael Sims
Jason Barnett wrote: 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 register_globals cannot be changed with ini_set(). It is of type PHP_INI_PERDIR

Re: [PHP] Re: How to set register_globals=off in the script?

2004-12-21 Thread Jason Wong
On Wednesday 22 December 2004 05:08, Jason Barnett wrote: Jerry Swanson wrote: 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 No you can't. Well