Re: Error Reporting

From: Date: Fri, 23 Dec 2011 18:05:48 +0000
Subject: Re: Error Reporting
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-316094@lists.php.net to get a copy of this message
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/

« previous php.general (#316094) next »