note 64494 added to security.globals

From: Date: Sun, 16 Apr 2006 15:46:16 +0000
Subject: note 64494 added to security.globals
Groups: php.notes 
Request: Send a blank email to php-notes+get-108276@lists.php.net to get a copy of this message
Most of the posting here are in regards to turning off register_globals. However, dealing with a project at the moment written with globals on and limitations in terms of httpd.conf and .htaccess, I find the simple solution below very helpful in the situation. Hopefully temporarily. // SIMULATE REGISTER_GLOBALS ON foreach ($_REQUEST as $key => $value) { $$key = $value; } ---- Server IP: 85.116.0.130 Probable Submitter: 87.80.30.123 ---- X-Spam-Status: No, hits=3.1 required=5.0 tests=DATE_MISSING,FROM_NO_LOWER autolearn=no version=2.64 ---- Manual Page -- http://www.php.net/manual/en/security.globals.php Edit -- http://master.php.net/note/edit/64494 Del: integrated -- http://master.php.net/note/delete/64494/integrated Del: useless -- http://master.php.net/note/delete/64494/useless Del: bad code -- http://master.php.net/note/delete/64494/bad+code Del: spam -- http://master.php.net/note/delete/64494/spam Del: non-english -- http://master.php.net/note/delete/64494/non-english Del: in docs -- http://master.php.net/note/delete/64494/in+docs Del: other reasons-- http://master.php.net/note/delete/64494 Reject -- http://master.php.net/note/reject/64494 Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#108276) next »