Re: Catching all errors and redirecting

From: Date: Fri, 19 Aug 2005 08:49:57 +0000
Subject: Re: Catching all errors and redirecting
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-220929@lists.php.net to get a copy of this message
Thomas Hochstetter wrote:
Hi again, 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). thanks Thomas
From your name I would say you are german speaking, so i would suggest the error_handler example from the book Professionelle PHP 5-Programmmierung Entwicklerleitfaden für große Webprojekte mit PHP 5 von George Schlossnagle erschienen in der Open-Source-Library des Addison-Wesley Verlag ISBN: 3-8273-2198-0 Examples to this book [1] can be found under [2], the example to your special problem would be example 3-1. I'm sorry for writing german, but since it's a german book, i wrote all the facts about the book in german. Norbert [1] http://www.addison-wesley.de/main/main.asp?page=deutsch/bookdetails&productid=83009 [2] http://www.awl.de/buecher/3827321980/?SID={FC2DF695-9416-4CE0-8077-877C84150EF1}

« previous php.general (#220929) next »