19 May 2006
Switching from PHP 4 to PHP 5
If you use super globals, then you might have noticed that they changed the names for the super globals (i.e. $HTTP_GET_VARS turned into $_GET, etc)
For small scripts or future scripts, you should simply replace/use the new names.
But what do you do when you have big applications, or you use someone else’s applications?
The solution lies in references. Simply put at the beginning of your PHP code:
$HTTP_GET_VARS &= $_GET;
$HTTP_POST_VARS &= $_POST;
Thanks to Rique for pointing out the erroneous variable switch.