alles klar, bei mir ist php als cgi eingebunden, da ist es nicht notwendig.
bei php als modul muss der apache einmal ums wigwam gejagt werden
bei php als modul muss der apache einmal ums wigwam gejagt werden

function getVars($varname = "", $order = "EGPCSMR")
{
if (!$varname) return false;
$order = strtoupper($order);
for ($c = 0; $c < strlen($order); $c++) {
if (substr($order,$c,1) == "E") $globals = $GLOBALS['_ENV'];
if (substr($order,$c,1) == "G") $globals = $GLOBALS['_GET'];
if (substr($order,$c,1) == "P") $globals = $GLOBALS['_POST'];
if (substr($order,$c,1) == "C") $globals = $GLOBALS['_COOKIE'];
if (substr($order,$c,1) == "S") $globals = $GLOBALS['_SERVER'];
if (substr($order,$c,1) == "M") $globals = $GLOBALS['_SESSION'];
if (substr($order,$c,1) == "R") $globals = $GLOBALS['_REQUEST'];
$keys = array_keys($globals);
for ($cc = 0; $cc < count($keys); $cc++) {
$key = $keys[$cc];
if ($key == $varname) {
$$key = $globals[$key];
$cc = count($keys);
$c = strlen($order);
}
}
}
if (isset($key) && isset($$key)) return $$key;
else return false;
}
// unter Verwendung der Beispiele auf Kropff's HP
echo ($id);
//wird zu
echo(getVars('id'));
getVars("beispiel", "gp");
Kommentar