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

Zend:
Exceptional Code
Aug 02, 2004 @ 12:37:24

Also on Zend's website today, there's a new tutorial to assist PHP programmers in learning more about PHP 5's new Exception support.

Most technical articles skimp on error handling. This is understandable since clauses that check for error conditions tend to obscure otherwise good, clean example code. This article goes to the other extreme. Here you will encounter plenty of error handling, and very little else.

They go further this is extensive tutorial showing you everything from a simple die() statement (to clean things up nicely) all the way to creating custom error handlers (including the usage of the try/catch exception handlers).

I have to admit, I don't think I've seen a more complete article than this on this topic. Ususally, they're more focused on one simple part of error handling and miss the larger framework that it fits into. Be sure not to miss this one if you're looking to catch those pesky errors quickly and easily...

tagged:

Link:


Trending Topics: