News Feed
Jobs Feed
Sections




News Archive
PHPBuilder.com:
Building an Error-Handling Mechanism
September 10, 2009 @ 08:09:17

On PHPBuilder.com today there's a new tutorial from Marc Plotz about error handling in PHP apps - what it is and how to capture them to keep them away from your users.

Error reporting is there for a reason and should be used for the purpose it was built. [...] So what is it that we can do to stop errors from first giving out sensitive server information, and second killing our script half-way down the page? Luckily for us PHP has several built-in error handlers for us to use.

He looks at a few different ways to handle errors - additional checking around the operation (like a file_exists before a fopen), working with custom error handlers and the various error levels (like E_ALL or E_ERROR).

0 comments voice your opinion now!
error handling tutorial custom


blog comments powered by Disqus

Similar Posts

DevShed: Introducing Visitor Objects in PHP 5

Vinu Thomas' Blog: Wordpress blogging on a S60 Phone

Script-Tutorials.com: How to parse web pages using XPath

WeberDev.com: User Authentication with patUser (Part 3)

Cake Baker Blog: Using bake with (PHP)Eclipse


Community Events











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


interview series release framework zendframework2 language functional testing code example object opinion composer community database podcast conference tool introduction development

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