note 57764 deleted from security.globals by philip
| From: | philip@php.net | Date: | Fri, 28 Apr 2006 16:54:29 +0000 |
| Subject: | note 57764 deleted from security.globals by philip | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-110028@lists.php.net to get a copy of this message | ||
Note Submitter: mike at uwmike dot com
----
If you're on a shared environment, and have no way of disabling register_globals, this little
"unregister_globals" snippet could come in handy:
<?php
if (@ini_get('register_globals'))
foreach ($_REQUEST as $key => $value)
unset($GLOBALS[$key]);
?>