Re: simple questions (<%=, error reporting)
| From: | Leslie Hoare | Date: | Tue, 02 Sep 2003 09:57:03 +0000 |
| Subject: | Re: simple questions (<%=, error reporting) | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-161598@lists.php.net to get a copy of this message | ||
"Digital Puer" <digital_puer@hotmail.com> wrote in message
news:80678590.0309011604.5f717289@posting.google.com...
> 2. About error reporting, I've found that the default error reporting
> level doesn't report undefined variables (these are occuring, for
> example, when I misspell a variable name). If I set error_reporting
> in php.ini to be E_ALL, undefined variables will be reported, but I
> also get a lot of undefined variable errors in HTTP_POST_VARS and the
like.
> Surely that has to be a happy medium?
>
> Thank you for any help.
Try this:
error_reporting(E_ALL & ~E_NOTICE);