#22246 [Opn->Bgs]: error notice "undefined variable"

From: Date: Mon, 17 Feb 2003 10:13:08 +0000
Subject: #22246 [Opn->Bgs]: error notice "undefined variable"
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-33303@lists.php.net to get a copy of this message
ID: 22246 Updated by: nicos@php.net Reported By: essexdog@canada.com -Status: Open +Status: Bogus Bug Type: Variables related Operating System: Windows 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. You should use $var = $_GET['var']; in the top of your script. Previous Comments: ------------------------------------------------------------------------ [2003-02-17 04:09:18] essexdog@canada.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. ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=22246&edit=1

« previous php.bugs (#33303) next »