Re: [PHP] Notice problem...

2002-11-07 Thread Marco Tabini
I guess the best solution would be to fix the error that the system is
reporting... you're using a constance that is not defined. Now, this
could mean that (a) you really meant to define a constant and you forgot
(or didn't include the right file) or (b) you typed the name of a
variable without the leading $ sign.


Marco
-
php|architect -- The Monthly Magazine For PHP Professionals
Come visit us on the web at http://www.phparch.com!

On Thu, 2002-11-07 at 17:23, R B wrote:
> 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?
> 
> Thanks,
> 
> RB
> 
> 
> 
> 
> _
> Charla con tus amigos en línea mediante MSN Messenger: 
> http://messenger.microsoft.com/es
> 
> 
> -- 
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
> 



--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




RE: [PHP] Notice problem...

2002-11-07 Thread John W. Holmes
> 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...



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP] Notice problem...

2002-11-07 Thread R B
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?

Thanks,

RB




_
Charla con tus amigos en línea mediante MSN Messenger: 
http://messenger.microsoft.com/es


--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php