we are changing servers and just installed php 5.3. the new server gave this error:
Undefined variable: HTTP_SERVER_VARS
we noticed register globals is turned off.
on php.net website, there is a reason it was turned off for php > 4.2;
question is, what do i do so that i don’t get the Undefined variable: HTTP_SERVER_VARS, especially when i can’t turned on register globals?
thanks.
Just use
$_SERVER,$_GET,$_POST, and$_COOKIE. They aren’t affected byregister_globals.For more details, see the superglobals manual page.