RE: [PHP-INST] Warning: Undefined variable:

From: Date: Wed, 14 Feb 2001 20:57:51 +0000
Subject: RE: [PHP-INST] Warning: Undefined variable:
References: 1  Groups: php.install 
Request: Send a blank email to php-install+get-2062@lists.php.net to get a copy of this message
Mr. Ericksen: That looks like there are probably statements in the code where the variable is used without being set first: if( $variable == 'blah' ) ... but $variable hasn't been set... This is ok in php, as long as the code can handle the variable being blank ... you can get rid of the warnings by editing your php.ini file to reflect as follows: find the section commented "Error Reporting", comment out the error_reporting = E_ALL; and enable the error_reporting = E_ALL & ~E_NOTICE ... so that it looks as follows: error_reporting = E_ALL & ~E_NOTICE ; show all errors, except for notices ; error_reporting = E_COMPILE_ERROR|E_ERROR|E_CORE_ERROR ; show only errors ;error_reporting = E_ALL; display all errors, warnings and notices hope that is what you are looking for! Michael -----Original Message----- From: Wayne B. Ericksen, P.E. [mailto:wayne.ericksen@eng.honeywell-tsi.com] Sent: Wednesday, February 14, 2001 12:54 PM To: php-install@lists.php.net Subject: [PHP-INST] Warning: Undefined variable: The following is the basic outline of the errors I keep getting whenever I try to run php scripts that I have downloaded: Error - Warning: Undefined variable: variablename in \path in line xx where variablename is many different variables. I get many of these undefined variable warnings. I am running Apache 1.3.14, PHP 4.0.4pl1 and mySQL 3.23.22 beta on NT 4.0 sp5. I have already made in my php.ini include_path = "." .....and it didn't fix the problem. Any advise or help would be most helpful. I have searched this site and faqts.com and have not found the solution. Thanks. Wayne -- PHP Install Mailing List (http://www.php.net/) To unsubscribe, e-mail: php-install-unsubscribe@lists.php.net For additional commands, e-mail: php-install-help@lists.php.net To contact the list administrators, e-mail: php-list-admin@lists.php.net

« previous php.install (#2062) next »