Mailinglisten-Archive |
* Andreas Demmer <php at andreas-demmer.de> schrieb:
<snip>
> Entweder am Ende des Scriptes ausführen, oder per
> register_shutdown_function()
> schon am Anfang als Funktion definieren, dann aber die Variablen in $GLOBALS
> auf
> Existenz prüfen!
Warum nicht am Anfang des Scripts:
foreach ( $_POST as $_walk => $_cur )
{
global $$_walk;
$$_walk = & $_POST{$_walk};
}
foreach ( $_GET as $_walk => $_cur )
{
global $$_walk;
$$_walk = & $_POST{$_walk};
}
foreach ( $_FILES as $_walk => $_cur )
{
global $$_walk;
$$_walk = & $_POST{$_walk};
}
foreach ( $_COOKIE as $_walk => $_cur )
{
global $$_walk;
$$_walk = & $_POST{$_walk};
}
foreach ( $_SESSION as $_walk => $_cur )
{
global $$_walk;
$$_walk = & $_POST{$_walk};
}
Sollte beide Fliegen mit einer Klappe schlagen.
cu
--
---------------------------------------------------------------------
Enrico Weigelt == metux IT service
phone: +49 36207 519931 www: http://www.metux.de/
fax: +49 36207 519932 email: contact at metux.de
cellphone: +49 174 7066481
---------------------------------------------------------------------
-- DSL ab 0 Euro. -- statische IP -- UUCP -- Hosting -- Webshops --
---------------------------------------------------------------------
php::bar PHP Wiki - Listenarchive