Re: Predefined variables not set?

From: Date: Sun, 13 Oct 2002 12:57:46 +0000
Subject: Re: Predefined variables not set?
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-119784@lists.php.net to get a copy of this message
Am Sonntag, 13. Oktober 2002 10:04 schrieb Miles: > When trying to get $_SERVER["QUERY_STRING"] I am getting 'Undefined index > QUERY_STRING' error > > If there is a query string, e.g. www.site.com/index.php?hello_world then > it IS defined. So it seems that PHP is complaining about undefined > variables, rather than just outputting nothing. > > How can I fix this? I've had no problems until i reinstalled php today... I think on your prior installation, error reporting level was set lower than on your new installation. The better way is to fix the script, that this condition doesn't occur at all --> if (isset($_SERVER['QUERY_STRING'])) { ... } Sascha

« previous php.general (#119784) next »