View Full Version : $post and $get
anthony
10-10-2008, 06:39 AM
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'];
this app is not on the web
Arthur
10-10-2008, 07:43 AM
If I'm understanding your question correctly, you are looking for register_globals (http://www.php.net/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).
-Arthur
anthony
10-10-2008, 08:39 AM
thanks a
did that in the php.ini and it worked
tony
Terra
10-10-2008, 06:23 PM
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...
--
Terra
vBulletin® v3.6.8, Copyright ©2000-2013, Jelsoft Enterprises Ltd.