The following can be an include file (eg set.ini), and be called at the top of every page in case you knowingly* want all the global variables passed on the URL to be defined as global variables and don't know if your target webserver(s) will have the auto global variable parameter turned on when the code is executed.
<?php
if($_SERVER['REQUEST_METHOD'] == "GET" )
{
reset ($_GET);
while (list ($key, $val) = each ($_GET)) $$key=$val;
}
else
{
reset ($_POST);
while (list ($key, $val) = each ($_POST)) $$key=$val;
}
?>
*Attention, it may be unsecure to have this behaviour though.