I need to run a legacy PHP application in a shared hosting environment. I have promised my customer I’ll support that legacy application for some time but I found that it doesn’t work because it widely uses the deprecated $HTTP_POST_VARS.
Downgrading PHP is not an option. Patching the application could be infeasible because the PHP files are generated from a Windows executable file (I’m not kidding!) and every time the site is regenerated from desktop we could lose modifications.
I’m asking if there is a way to tell PHP to reintroduce $HTTP_POST_VARS for all websites on a host or just for a particular vhost. Any other option/suggestion is appreciated
You can do this
config.php
.htaccess
PHP doc auto_prepend_file string
EDIT: To be extra thorough, these are the other superglobals that could also be aliased: