Re: Notice problem...
| From: | conbud | Date: | Fri, 08 Nov 2002 03:22:35 +0000 |
| Subject: | Re: Notice problem... | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-123301@lists.php.net to get a copy of this message | ||
Hey
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" <rbphp@hotmail.com> wrote in message
news:F71fyz5b6KZmcK8r6be00000044@hotmail.com...
> 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
>