Re: error handling
| From: | Stig S. Bakken | Date: | Wed, 20 Nov 2002 21:40:47 +0000 |
| Subject: | Re: error handling | ||
| References: | 1 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-91372@lists.php.net to get a copy of this message | ||
On Wed, 20 Nov 2002, Ivan Ristic wrote:
> > Create a configuration directive error_handler which accepts one of
> > Two values... Either a PHP script (like auto_prepend) which is
>
> And how about that we change PHP so that it changes
> the status of the response to 500 on a fatal error? Then
> you would be able to use the Apache directive
>
> ErrorDocument 500 /handle-my-errors.php
>
> to deal with them. You would have to use output buffering,
> of course, but using output buffering is the only way to
> shield your users from errors anyway.
+1 !!
Why didn't anyone think of this before? :)
- Stig