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
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
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
3 matches
Mail list logo