Re: [PHP] ini_set('register_globals',0) doesn't work

2002-05-27 Thread Jens Lehmann
Thank you for answer. I didn't expect ini_set('register_globals','Off') to work, that's why I had a look at the documentation. There should be PHP_INI_PERDIR, PHP_INI_SYSTEM but not PHP_INI_ALL in the table (so it's a mistake in the documentation). Anyway it may be possible to use this, if the va

Re: [PHP] ini_set('register_globals',0) doesn't work

2002-05-26 Thread Rasmus Lerdorf
register_globals affects things that happen before PHP parsing begins, so by the time you get to your ini_set() it is too late. So no, that won't work. You need to set it in your php.ini, httpd.conf or .htaccess. -Rasmus On Sun, 26 May 2002, Jens Lehmann wrote: > I tested ini_set('register_gl

[PHP] ini_set('register_globals',0) doesn't work

2002-05-26 Thread Jens Lehmann
I tested ini_set('register_globals',0) and ini_set('register_globals','Off') for turning register_globals off. It doesn't work and it doesn't produce any notice, warning or error. Here's a quick example: $test"; ?> This prints out $test, what it shouldn't do with register_globals turned