An easy way that I use to write scripts now is this:
At the top:
$POST = &$_POST;
and then I just use $POST in my scripts. If the server is running pre-4.1.0, I just change
$POST = &$_POST;
to
$POST = &$HTTP_POST_VARS;
without touching the rest of the program and it'll work fine in older versions.
Diego