Re: should i be concerned about these "Use of undefined constant xxxx - assumed 'xxx'..." notice warnings???

From: Date: Tue, 29 Apr 2003 06:23:11 +0000
Subject: Re: should i be concerned about these "Use of undefined constant xxxx - assumed 'xxx'..." notice warnings???
References: 1  Groups: php.windows 
Request: Send a blank email to php-windows+get-19706@lists.php.net to get a copy of this message
"Leo G. Divingracia III" <ldivinag@csuhayward.edu> a écrit dans le message news: 3EADF8E4.9070509@csuhayward.edu... > > i'm getting these "notices": > > Use of undefined constant csuh_tag - assumed 'csuh_tag' in > c:\foxserv\www\inventory\test3.php on line 20 > > they work and all, but i want to run clean and true PHP code. should i > worry? or just let it go? the stuff works... > You got theses notices because you have certainly an "error_reporting" level to E_ALL in your php.ini. If you set error_reporting(E_ALL ^ E_NOTICE) in your script (or in php.ini), the non error-critical error messages will disappear. However, I think it's a good thing to let E_ALL : - because you can't know what has defined someone in his php.ini - because it's easier for debugging purpose. So, to have cleaner code, you would initialize all the variables used in your script. Regards, Philippe

« previous php.windows (#19706) next »