I had several scripts running on a server, and when they updated to a newer PHP version they turned off register_globals.
I like most people use a TON of variables that are being passed, and I didn't want to hand code them all:
$id = $HTTP_POST_VARS[id];
$name = $HTTP_POST_VARS[name];
etc. . .
SO I came up with this little ditty:
foreach($HTTP_POST_VARS as $i=>$v)
{
${$i} = $v;
}
Which loops through all of the HTTP_POST_VARS and sets the $var to $HTTP_POST_VARS[var].
Hope this helps.