note 66244 deleted from security.globals by bjori
| From: | bjori@php.net | Date: | Wed, 17 May 2006 15:18:35 +0000 |
| Subject: | note 66244 deleted from security.globals by bjori | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-111511@lists.php.net to get a copy of this message | ||
Note Submitter: rolf at NOSPAM dot gaarden dot net
Reason: bad code
----
If you are in the need to turn register_globals on and are not allowed to (e.g. legacy-code in php
6?), you may include the following line at the top of your files:
<?php $keys = array_keys($_GET); for ($i = 0; $i < count($keys); $i++) $$keys[$i] =
$_GET[$keys[$i]]; ?>
this sets all http-get variables as PHP-variables.
Regards
Rolf