Re: Catching all errors and redirecting
| From: | Ben Ramsey | Date: | Thu, 18 Aug 2005 18:22:58 +0000 |
| Subject: | Re: Catching all errors and redirecting | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-220888@lists.php.net to get a copy of this message | ||
Thomas Hochstetter wrote:
Is it possible to catch all parser errors (notices), and as that happens redirecting to a 'sorry-page-not-available-at-this-moment' page, whilst storing the error (or notice) message somewhere else (e.g. emailing it to the developer).See set_error_handler() http://www.php.net/set_error_handler -- Ben Ramsey http://benramsey.com/