html and code
|vars with reg.glob. off
get old scripts working with register globals off.
full source of vars with reg.glob. off [ line 1 - 9 ] | download vars with reg.glob. off
| 1 | <?php |
| 2 | // reassign HTTP variables (incase register_globals is off) |
| 3 | // easy |
| 4 | if (!empty($HTTP_GET_VARS)) extract($_GET); |
| 5 | if (!empty($HTTP_POST_VARS)) extract($_POST); |
| 6 | // complicated |
| 7 | if (!empty($HTTP_GET_VARS)) while(list($name, $value) = each($HTTP_GET_VARS)) $$name = $value; |
| 8 | if (!empty($HTTP_POST_VARS)) while(list($name, $value) = each($HTTP_POST_VARS)) $$name = $value; |
| 9 | ?> |
325 hits by 17 users in the last 30 minutes.