Re: Error Reporting

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

http://www.cmsws.com/
http://www.cmsws.com/examples/
http://www.bendsource.com/

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



[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux