Re: Re: error handling

From: Date: Thu, 19 Jun 2003 18:58:06 +0000
Subject: Re: Re: error handling
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-152217@lists.php.net to get a copy of this message
> I looked in the manual (twice now). I want to keep logging to the log > file but print to browser on this one script. > > I have in my script: > error_reporting (E_ALL); > error_reporting (E_ERROR | E_WARNING | E_PARSE); > > but they're still only being logged to file. I dont have access to > php.ini. Is display_errors enabled? You should be able to set either of these options with ini_set(). If it's either log or display and you can't have both, then implement your own error handler for the page, log the error, then display it also. ---John Holmes...

« previous php.general (#152217) next »