note 58178 added to security.globals
| From: | flarecaster at gmail dot com | Date: | Wed, 26 Oct 2005 17:43:02 +0000 |
| Subject: | note 58178 added to security.globals | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-97633@lists.php.net to get a copy of this message | ||
If register_globals is turned off you can use this code;
<?
if(!$PHP_SELF){
if($HTTP_POST_VARS) {extract($HTTP_POST_VARS, EXTR_PREFIX_SAME, "post_");}
if($HTTP_GET_VARS) {extract($HTTP_GET_VARS, EXTR_PREFIX_SAME, "get_");}
if($HTTP_COOKIE_VARS) {extract($HTTP_COOKIE_VARS, EXTR_PREFIX_SAME, "cookie_");}
if($HTTP_ENV_VARS) {extract($HTTP_ENV_VARS, EXTR_PREFIX_SAME, "env_");}
}
if($PHP_SELF == ""){ $PHP_SELF = $HTTP_SERVER_VARS[PHP_SELF]; }
?>
----
Manual Page -- http://www.php.net/manual/en/security.globals.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+58178
Delete: added to the manual -- http://master.php.net/manage/user-notes.php?action=delete+58178&report=yes&reason=added+to+the+manual
Delete: bad code -- http://master.php.net/manage/user-notes.php?action=delete+58178&report=yes&reason=bad+code
Delete: spam -- http://master.php.net/manage/user-notes.php?action=delete+58178&report=yes&reason=spam
Delete: useless -- http://master.php.net/manage/user-notes.php?action=delete+58178&report=yes&reason=useless
Delete: non-english -- http://master.php.net/manage/user-notes.php?action=delete+58178&report=yes&reason=non-english
Delete: already in docs -- http://master.php.net/manage/user-notes.php?action=delete+58178&report=yes&reason=already+in+docs
Delete: other reasons -- http://master.php.net/manage/user-notes.php?action=delete+58178&report=yes
Reject -- http://master.php.net/manage/user-notes.php?action=reject+58178&report=yes
Search -- http://master.php.net/manage/user-notes.php