News Feed
Sections




News Archive
Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

SitePoint PHP Blog:
Pimpin Harry's pretty bluescreen
August 11, 2006 @ 14:13:20

On the SitePoint PHP blog today, Maarten Manders talks about some updates he made to the "pretty blue screen" created originally by Harry Fuecks to handle more error types.

I modified it to handle errors as well and added some features which make it useful in productive systems as well: Error logging, Error Mailing, and Configuration.

The script logs or mails unique errors only once to prevent your log file or mailbox to be spammed with the same error again and again. It also takes care of the error level including shutup operator. It's a little bit hacky but did well on our dev servers (where errors tend to happen) in the past few weeks.

The link to grab this latest version of a handy bit of functionality is here - two different files, one for the error handler and one for the exception handler. He also includes a sample code snippet of how to use it.

0 comments voice your opinion now!
blue screen error reporting exception handling logging mailing configuration blue screen error reporting exception handling logging mailing configuration


blog comments powered by Disqus

Similar Posts

Ldeveloper Tech Blog: PHP - Fatal error: Uncaught SoapFault exception: Could not connect to host...

Zend Developer Zone: Zend Framework Hidden Gems: Introduction

Derick Rethans' Blog: PHP's two-pass compiler

Kevin van Zonneveld: It's Almost 2014 and We Are Still Committing Broken Code

Greg Beaver's Blog: Update to libxml2 in PHP - progress hath been acquired


Community Events





Don't see your event here?
Let us know!


composer voicesoftheelephpant series list tool version library artisanfiles interview laravel release opinion introduction security community conference language framework podcast symfony

All content copyright, 2014 PHPDeveloper.org :: info@phpdeveloper.org - Powered by the Solar PHP Framework