Here's a python tool to convert long array names (e.g. $HTTP_POST_VARS)
to their non-depriciated short equivalents (e.g. $_POST) in a file.
It's very un-elegant and could be easily generalized so as to make it
easier to modify to do any kind of substitution. It will not remove the
global declarations on the renamed variables in a file but as AFAIK
these are harmless, if redundant, since the short-named arrays are
already global in scope.
cd to your phplib directory and run 'php_long_arrays.py *.inc'.
The program self-docs and makes backup files of everything it does any
conversion on.
--
Lindsay Haisley | "In an open world, | PGP public key
FMP Computer Services | who needs Windows | available at
512-259-1190 | or Gates" | http://pubkeys.fmp.com
http://www.fmp.com | |
|