RE: [PHP] Notice problem...

From: Date: Fri, 08 Nov 2002 00:27:27 +0000
Subject: RE: [PHP] Notice problem...
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-123286@lists.php.net to get a copy of this message
> When i set display_errors = On and error_reporting = E_ALL in my > php.ini, > i get the next message for each variable that i use in the script: > "Notice: Use of undefined constant varname ....." > > How is the best solution for this problem, setting error_reporting = > E_ALL > & ~E_NOTICE or other method? It's better to fix notices, then to ignore them, usually. The problem is probably from using a syntax like this: $array[key] when you should use $array['key'] or $array["key"] ---John Holmes...

« previous php.general (#123286) next »