html and code
|extract vars
this helps if you want to make these old scripts working with register globals off ...
since PHP version 4.2 you can't get POST or GET variables like you could in the old versions.
So to use your old scripts you either would have to rewrite the whole thing (which would be the more secure solution), but sometimes this is a lengthy procedure.
This is where this snippet jumps in.
Place this on top of all the files and it will get your variables.
full source of extract vars [ line 1 - 10 ] | download extract vars
| 1 | <? |
| 2 | if(phpversion() >= "4.2.0") |
| 3 | { |
| 4 | extract($_POST); |
| 5 | extract($_GET); |
| 6 | extract($_SERVER); |
| 7 | extract($_ENV); |
| 8 | extract($_COOKIE); |
| 9 | } |
| 10 | ?> |
3 hits by 3 users in the last 30 minutes.