note 57328 deleted from function.ini-set by jome

From: Date: Fri, 30 Sep 2005 17:53:01 +0000
Subject: note 57328 deleted from function.ini-set by jome
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-96065@lists.php.net to get a copy of this message
Note Submitter: matth at micgi dot com ---- As already mentioned, setting register globals will have no affect on your script. For example: <?php ini_set('register_globals', 'On'); // This might be '1', can't recall... ?> ...does nothing since it would have to be done before your script runs. A way to get around this particular issue is to assign the globals manually: <?php foreach ($HTTP_GET_VARS as $key => $value) { $GLOBALS[$key] = $value; // or: $$key = $value; } foreach ($HTTP_POST_VARS as $key => $value) { $GLOBALS[$key] = $value; // Could also see if $key was already set here } ?>

« previous php.notes (#96065) next »