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:
Error Handling in PHP 5
March 07, 2012 @ 13:37:12

New on PHPBuilder.com today Leidago Noabeb gives you a pretty comprehensive overview of error handling in PHP - everything from the types of errors to how to control which are output in which environments.

In this article we will be looking at how to handle errors in PHP. Errors are an inevitable part of software development, and accordingly, we will be looking at the various error types and demonstrating how to handle them. If you intend to run any of the sample scripts in this article, please make sure that display errors is turned on in your PHP initialization document (php.ini).

The article talks about the types of errors PHP uses (syntactical, runtime and logical) and shows how to handle some of the most common issues with them. It also talks about the different error reporting levels (ex. E_ALL, E_WARNING, E_STRICT) and includes the code for a simple error handler class that switches off and handles each type differently.

0 comments voice your opinion now!
error handling class example levels tutorial


blog comments powered by Disqus

Similar Posts

Pádraic Brady's Blog:Doing that thing called PEAR - Packaging Source Code for PEAR Distribution

PHPit.net: Handling dates and times in PHP & MySQL

Ibuildings techPortal: Writing a Custom Magento Module

Debuggable Blog: Testing Models in CakePHP - Now let's get rid of the unnecessary ModelTest classes!

PHPBuilder.com: PHP and Shell Scripting: Using Pipes


Community Events





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


bugfix api release laravel symfony introduction framework library install zendserver voicesoftheelephpant package unittest deployment interview opinion community series language podcast

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