News Feed
Sections




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

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

WebReference.com: Globalize your Web Applications: PHP's Locale Package

MaltBlue.com: Zend Form Mastery with Zend Config - Part 1, Custom Filter Paths

HowToForge: How To Install a Complete LEMP on Ubuntu/Debian

Rob Allen: Setting up Zend Server 6 on OS X for PHP development

Raphael Stolt's Blog: Creating custom PHPUnit assertions


Community Events





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


code project library wordpress api series podcast community language configure developer bugfix list framework introduction threedevsandamaybe release interview application laravel

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