News Feed
Jobs Feed
Sections




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

DevShed:
Error Handling in PHP - Coding Defensively
January 12, 2006 @ 06:34:19

DevShed has a new article posted today dealing with error reporting in PHP applications.

Since error handling is something that you should introduce (at least progressively) into your applications, in this article I'll explore some of the most common error checking methods available in PHP, in order to make web applications much more robust and reliable.

The end result of this experience will be an illustrative list of hands-on examples that utilize different error handling methods, ranging in from using simple "die()" statements, to manipulating errors within an object-oriented context, by utilizing exceptions.

They cover things like the basic die() statement, triggering errors in your code with the trigger_error() function, using the error handling in PEAR, and setting boolean flags to catch when things go wrong...

0 comments voice your opinion now!
error handling defensively die trigger_error PEAR error handling defensively die trigger_error PEAR


blog comments powered by Disqus

Similar Posts

Skaldrom's Blog: Want to create your own progranning language? Lexer & Parser in PHP!

Padraic Brady's Blog: To PEAR or not to PEAR? And how to PEAR anyway?

Greg Beaver's Blog: Be careful of PEAR 1.4.4 and older installs when uninstalling a package

David Stockton's Blog: Changing ErrorController to work with AJAX

Ligaya Turmelle's Blog: 25 Ways to help out PHP


Community Events











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


package hack symfony2 language series install framework podcast facebook overview release composer component security code application introduction unittest hhvm opinion

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