> 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

Reply via email to