Re: Is it a Bug or is it me ?

From: Date: Thu, 16 Nov 2000 21:38:50 +0000
Subject: Re: Is it a Bug or is it me ?
References: 1  Groups: php.windows 
Request: Send a blank email to php-windows+get-3923@lists.php.net to get a copy of this message
fabiano wrote: > I receive an error msg saying : > Warning: Undefined variable: name in index.php3 on line 42 > It would be ok if it also happened in my older version 3.0 and if it > happened in my 4.0.0 linux server. > BUT it only happens in the newest 4.0.3 > so I must ask you all :) > Is it a BUG or is it me ? or I'll must declare all variables ? Fabiano, 1) This is most likely not a bug. 2) This is NOT a difference between v3.0, v4.0.0, and v4.0.3 3) This IS most likely just a difference in your php.ini settings between the 3 versions/servers. If you want to automatically access form(cgi) variables by their variable name in a php script, then you have to make sure that both track_vars and register_globals are set to On in you php.ini. Most likely, these were set to On in both your v3 php3.ini and in the php.ini on your linux server. Just for everybody's edification, this question gets asked A LOT, so it's recommended people search the list archive to check for commonly asked/answered questions. -- Andy Hoffman Web Developer Bristol-Myers Squibb email: andy.hoffman@bms.com

« previous php.windows (#3923) next »