ID: 19681 Updated by: [EMAIL PROTECTED] Reported By: [EMAIL PROTECTED] 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] [EMAIL PROTECTED] 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] [EMAIL PROTECTED] 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