Forum Notability:
10 pts: User-friendly
[Post Feedback]
Join Date: Dec 2000
Location: Rome
Posts: 224
$post and $get
Hi I have an local app that is not online and I upgrade to the new php. Is there a way to put some command in the header file or changing the php.ini file without having to go and change all of the information that is sent from the forms in the apps with $username = $_POST['username']; or
$username = $_GETT['username'];
If I'm understanding your question correctly, you are looking for register_globals, which is ON by default in PHP4 and OFF by default in PHP5 and higher. You can turn it on through a .htaccess file or in php.ini (see link above).
Please don't turn on register_globals unless you absolutely have to, and only then for a very short time until you can refactor the parts that need it on...
No application should ever depend on register_globals, and all outside input SHOULD be fully validated to prevent your site from being cracked...
It is better to do this now, as register_globals will be completely removed from PHP 6.x...