php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #22246 error notice "undefined variable"
Submitted: 2003-02-17 04:09 UTC Modified: 2003-02-17 04:13 UTC
From: essexdog at canada dot com Assigned:
Status: Not a bug Package: Variables related
PHP Version: 4.2.3 OS: Windows
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: essexdog at canada dot com
New email:
PHP Version: OS:

 

 [2003-02-17 04:09 UTC] essexdog at canada dot com
<?php
echo $var
?>

note:
url = http://localhost/test.php?var=test

error:
undefined variable

sapi: IIS 5.0

info: 
I try to run on Mandrake linux with  php4.2.3 + Apache 1.3.26, error not occurred. but work normally (print the value "test").

thanks. 

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2003-02-17 04:13 UTC] nicos@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.

You should use $var = $_GET[\'var\']; in the top of your script.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sun Dec 22 11:01:30 2024 UTC