|
Remove $HTTP_* vars using $_* instead in debug windows? |
PHP5 contains configuration directive for this. |
|
register_long_arrays boolean
Tells PHP whether or not to register the deprecated long $HTTP_*_VARS type predefined variables. When On (default), long predefined PHP variables like $HTTP_GET_VARS will be defined. If you're not using them, it's recommended to turn them off, for performance reasons. Instead, use the superglobal arrays, like $_GET. --- Upgrading to PHP 5 seems like the solution? Is this possible using PHP 4? |
||||||||||||
|
For those of you looking to do this |
|
It is simple to get this to work. Little investigation went a long way in this case:
Download the PHP5 package for PHPed v3.3 Setup the SRV web server (I use this to test locally so will obviously be differrent for 3rd party web server) .php extension to run the newly installed php5/php-cgi.exe (same as the new .php5 extension). That's it. The "long arrays" will disappear from your debug windows, until you use them. Except $HTTP_SESSION_VARS still gets registered when session_start() runs -- probably for backwards compatibility reasons. Anyway, hope this helps someone |
||||||||||||
|
Site Admin
|
Thanks for such a self-contained post
|
||||||||||||
|
Re: PHP5 contains configuration directive for this. |
|
Yes. Some common sense later:
Save and name this as autoexec.php and use
Or optionally just put that line of code as first line in script. PHPED happilly acknowledges your unset desires and removes the legacy variables from the debug window. Hopefully this helps someone |
||||||||||||||||||
|
Remove $HTTP_* vars using $_* instead in debug windows? |
|
||
Content © NuSphere Corp., PHP IDE team
Powered by phpBB © phpBB Group, Design by phpBBStyles.com | Styles Database.
Powered by
Powered by phpBB © phpBB Group, Design by phpBBStyles.com | Styles Database.
Powered by