Use error_reporting = E_ALL & ~E_NOTICE
that will display all errors except notices, I use if statements in a lot of
my pages and if one of the variables in the if statement doesnt get defined,
which some of them are ment to not get defined if a certain other variable
is already define, so you may have all of your PHP syntax ok but still
getting the notice. Hope this helps.

- Lee

"R B" <[EMAIL PROTECTED]> wrote in message
> When i set display_errors = On and error_reporting  =  E_ALL in my
> 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_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

Reply via email to