php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #19681 GET/POST Variables not parsing
Submitted: 2002-09-30 19:17 UTC Modified: 2002-09-30 19:30 UTC
From: hyena5 at hotmail dot com Assigned:
Status: Not a bug Package: Variables related
PHP Version: 4.2.3 OS: Linux RedHat 7.2
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: hyena5 at hotmail dot com
New email:
PHP Version: OS:

 

 [2002-09-30 19:17 UTC] hyena5 at hotmail dot 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

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2002-09-30 19:22 UTC] 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:30 UTC] hholzgra@php.net
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.


 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Dec 26 23:01:28 2024 UTC