note 70347 rejected from security.globals by colder

From: Date: Thu, 12 Oct 2006 15:27:57 +0000
Subject: note 70347 rejected from security.globals by colder
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-118460@lists.php.net to get a copy of this message
Note Submitter: webmaster at desire2design dot com ---- For those of you that are lazy, have register_globals defaulted to off and need something quick to fix scripts that aren't going to be tampered by those amazing haxor guys (or not so amazing since it's been disabled in php.ini by default) but rather someone that manages houses for a living... <?php foreach ( $_REQUEST as $varname=>$avar ) { $$varname=$avar; } ?> will grab all those nice globals and assign them back into your variables. If your scripts worked fine before the upgrade, you won't have to worry about clashing of GET and POST variables.

« previous php.notes (#118460) next »