note 43037 added to security.globals

From: Date: Mon, 07 Jun 2004 16:48:56 +0000
Subject: note 43037 added to security.globals
Groups: php.notes 
Request: Send a blank email to php-notes+get-70689@lists.php.net to get a copy of this message
If you were previously used to having register_globals on but have now disabled it for security reasons, there is a very simple piece of code which will have the effect of turning them back on again: <?php foreach (array_keys($_GET) as $key) $$key=$_GET[$key]; ?> Add another line for $_POST and $_COOKIE and so on and voila! ---- Manual Page -- http://www.php.net/manual/en/security.globals.php Edit -- http://master.php.net/manage/user-notes.php?action=edit+43037 Delete -- http://master.php.net/manage/user-notes.php?action=delete+43037&report=yes Reject -- http://master.php.net/manage/user-notes.php?action=reject+43037&report=yes Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#70689) next »