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

<?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

Reply via email to