globals not working for me with 4.1.0
| From: | Matt Pieklik | Date: | Wed, 09 Jan 2002 06:23:17 +0000 |
| Subject: | globals not working for me with 4.1.0 | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-79870@lists.php.net to get a copy of this message | ||
Hello,
I had a script that was workin for me with PHP 4.0.6.
I upgraded to 4.1.0 because another app required it,
and it broke the original script I was using.
Under 4.0.6 I was able to do the following:
global $PHP_AUTH_USER,$PHP_AUTH_PW;
echo $GLOBALS[REMOTE_ADDR];
This would echo the correct results. Now after the
upgrade, the code above does not echo anything.
This will work, however:
echo $_SERVER["REMOTE_ADDR"];
In my php.ini I have the following:
register_globals = On
register_argc_argv = On
Any ideas on how to fix these global variables not being
set?
Thanks,
Matt