I've got a server where register_global s is on in php.ini, but its affecting
the way the website works. It was programmed with the assumption that it
would always be off, and i've always used the full names such as
$_SESSION['userid'] etc in all the code. However, I also use some local
variables of $userid, and on this server they seem to be changing the
session variable when I use them. I don't have access to php.ini, and its
on a Win2000 server so can't use htaccess. According to the documentation,
I can't set it at runtime with ini_set.
So, is there any way I can disable the operation of register globals /
superglobal variables in this situation? I really don't want to go through
and change all my variable names, since that is exactly why I made sure to
use the full variable name every time for sessions, post and get values.
Thanks
David
the way the website works. It was programmed with the assumption that it
would always be off, and i've always used the full names such as
$_SESSION['userid'] etc in all the code. However, I also use some local
variables of $userid, and on this server they seem to be changing the
session variable when I use them. I don't have access to php.ini, and its
on a Win2000 server so can't use htaccess. According to the documentation,
I can't set it at runtime with ini_set.
So, is there any way I can disable the operation of register globals /
superglobal variables in this situation? I really don't want to go through
and change all my variable names, since that is exactly why I made sure to
use the full variable name every time for sessions, post and get values.
Thanks
David
Comment