I am trying to refactor old PHP project, and this project does not access $_GET, $_POST variables explicitly. For example, it just uses $ab instead of $_POST['ab']. My local server does not allow that right now.
How can I change my php.ini setting such that I can directly access those $_POST and $_GET variables without referrencing them with $_GET and $_POST?
I need to do this through server-wise setting because there are just so many files to add 2 lines of settings on the top.
In php.ini set the
register_globalsoption to'on'This is very very bad practice, however, and I suggest you make this temporary.