|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #29009 Variable URL problem
Submitted: 2004-07-04 17:42 UTC Modified: 2004-07-04 18:12 UTC
From: zidokid at hotmail dot com Assigned:
Status: Not a bug Package: URL related
PHP Version: 4.3.7 OS: Windows XP Professional
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
Bug Type:
From: zidokid at hotmail dot com
New email:
PHP Version: OS:


 [2004-07-04 17:42 UTC] zidokid at hotmail dot com
I am using an Apache 2 Server, in the http.conf file, i installed php using this method: 

LoadModule php4_module c:/php/sapi/php4apache2.dll
AddType application/x-httpd-php .php

Whenever I try to define a variable at the URL such as
then it DOESNT show the variable on the screen, however, when i define a variable from inside the source code, such as <?php $txt = something; ?> then the variable DOES show on the page. Please tell me how to get rid of this bug.

Reproduce code:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "">
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<title>Untitled Document</title>

echo $txt;

Expected result:
When i type

I expected that i would get a page that says "something".

Actual result:
Nothing appeared on the page.


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2004-07-04 18:12 UTC]
In PHP 4.2.0, the 'register_globals' setting default changed to
'off'. See 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: Fri Apr 19 19:01:28 2024 UTC