On 12/23/2011 8:13 AM, Floyd Resler wrote:
> I know this is a very basic question and I'm almost embarrassed to ask it, 
> but it's something I really struggle with.  That is, getting the right 
> combination of error reporting options together to report the errors I want.  
> Right now, I get the errors I want except for parse errors.  Basically, I 
> want all errors but not warnings.  What would be a good combination of error 
> report options for my php.ini file?
> Thanks!
> Floyd

I run this on my server:

error_reporting = E_ALL
display_errors = On
log_errors = On

It shows me everything, including warnings.

If you want to hide the Warning, then you would use this

error_reporting = E_ALL & ~E_NOTICE
display_errors = On
log_errors = On

E_NOTICE includes warnings.

Reference here: http://us.php.net/manual/en/errorfunc.constants.php

Jim Lucas


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

Reply via email to