note 60615 deleted from security.globals by philip

From: Date: Fri, 28 Apr 2006 16:53:08 +0000
Subject: note 60615 deleted from security.globals by philip
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-110025@lists.php.net to get a copy of this message
Note Submitter: raphael at er-solution dot de ---- I found something very interessting. That method puts a "$_POST", "$_GET", .... in front of your var :) <?php /* If Register_Globals=off an your code is already typed for Register_Globals=on, include that function */ function globals_off () { if (!ini_get('register_globals')) { h$types_to_register = array('GET','POST','COOKIE','SESSION','SERVER'); foreach ($types_to_register as $type) { if (@count(${'HTTP_' . $type . '_VARS'}) > 0) { extract(${'HTTP_' . $type . '_VARS'}, EXTR_OVERWRITE); } } } } ?>

« previous php.notes (#110025) next »