Re: Why my $SERVER_NAME variable is not working anymore?

From: Date: Thu, 05 Feb 2004 04:43:02 +0000
Subject: Re: Why my $SERVER_NAME variable is not working anymore?
References: 1 2 3 4 5  Groups: php.general 
Request: Send a blank email to php-general+get-176864@lists.php.net to get a copy of this message
Gabriel Schillaci wrote:
It is already set to ON, but still getting the same message, and other messages such as:
    Notice: Undefined variable xxx
    This is another kind of error I started to receive since we moved from
Linux/php 4.2.x to Win/php 4.3.x
    Until 4.2.x, this code was good for php parser:
    if ($a=='something')
        ...
    But now, php 4.3.x says that $a is undefined, and is forcing me to
declare/make use of a variable before I can mention it.
    $a='';
    if ($a=='something')
Please reply to the list, and not just me. That way, when someone else who has this problem will be able to search it in the archives. Okay, this is the error reporting level. In the php.ini you can set 'error_reporting' to E_ALL & ~E_NOTICE to get rid of the warnings, or you can turn 'display_errors' to Off (restart of web server needed for the changes to take effect). Of course, it's still better to write your code to where you don't get these warnnings. -- By-Tor.com It's all about the Rush http://www.by-tor.com

« previous php.general (#176864) next »