Re: display_errors off and custom error pages

From: Date: Tue, 02 May 2006 08:08:11 +0000
Subject: Re: display_errors off and custom error pages
References: 1 2 3  Groups: php.general 
Request: Send a blank email to php-general+get-235238@lists.php.net to get a copy of this message
IG wrote:
Thanks, Chris.
..
Do I have to have display_errors set to 1 if I want to display a custom error page? I'd rather have display errors set to 0 but have a custom error page displayed when an error is triggered. Is this possible?
yes. display_errors merely determines whether php spits out errors direct to std. out or not (i.e. the browser in this case) your error handler can do whatever it likes including [conditionally] outputing a user friendly page.
Perhaps I have misunderstood how errors work in php.
-- Postgresql & php tutorials http://www.designmagick.com/


« previous php.general (#235238) next »