#19681 [Bgs]: GET/POST Variables not parsing

From: Date: Tue, 01 Oct 2002 00:30:27 +0000
Subject: #19681 [Bgs]: GET/POST Variables not parsing
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-20841@lists.php.net to get a copy of this message
ID: 19681 Updated by: hholzgra@php.net Reported By: hyena5@hotmail.com Status: Bogus Bug Type: Variables related Operating System: Linux RedHat 7.2 PHP Version: 4.2.3 New Comment: In PHP 4.2.0, the 'register_globals' setting default changed to 'off'. See http://www.php.net/release_4_2_0.php for more info. We are sorry about the inconvenience, but this change was a necessary part of our efforts to make PHP scripting more secure and portable. Previous Comments: ------------------------------------------------------------------------ [2002-09-30 19:22:04] iliaa@php.net Thank you for taking the time to write to us, but this is not a bug. Please double-check the documentation available at http://www.php.net/manual/ and the instructions on how to report a bug at http://bugs.php.net/how-to-report.php Since PHP 4.2.0 register_globals are off by default, this is why $url is blank. If you turn them on in php.ini, you will be able to use $url. ------------------------------------------------------------------------ [2002-09-30 19:17:30] hyena5@hotmail.com Hi, I just upgraded to 4.2.3 with apache 2.0.42 this evening and my scripts no longer function as before. For example if I send a GET_Method URL to my server: http://www.geomagnet.com/redirect.html?url=www.atomflash.com the script: <? header("Location:http://$url"); exit; ?> No longer functions unless I add this line before the header function. $url=$_GET["url"]; Do I have to now define the variables (as in PERL)? or is this a bug. Thanks Scott STolpmann ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=19681&edit=1

« previous php.bugs (#20841) next »