Replace error reporting with exception handlers
As part of a series of posts about PHP exception handling, this post looks at how to make regular errors use exception model. Normally only the newer object-oriented extensions throw exceptions but it is possible to make all errors throw an exception instead using set_error_handler.
Related Tutorials
Exceptions - available informationThis post is part of a series about PHP exceptions and exception handling; the first post gave a basic overview of how they work and this one shows the information that is available from the exception object when an exception is caught.
Debugging your Code
Finding errors in your code by enabling PHP error reporting.
Custom Session Handlers in PHP4
This document describes how to customize the session handlers in PHP4. We will provide examples of how to write a fully functional session handler that works with DBM files and one that works with a MySQL database.
Catch uncaught exceptions
This is the third in a series of posts about exception handling in PHP and looks at how to specify a default exception handler. The default handler is called for any exceptions that occur which are not enclosed in a try..catch block.
Error Handling
Every website will encounter errors from time to time. Most sites will not have any error handling in place and the visitor will most likely receive a cryptic programming error. This can turn visitors away as they don't know what is happening. The way around this is to provide some error handling in your scripts. By testing for errors at crucial stages (e.g accessing a database) you can provide a friendly error message for the user. This tutorial will show you how the error handling functions for the LATEdownload v2 script have been written and how you can use them in your own site.
Error Handling
Every programmer wants to practice effective error handling. Learn how to control the size and other aspects of file uploading on your server by error handling.
Debugging PHP: Did You Remember to
So you've finally managed to install PHP. Anxious to use your new tool, you find the print function in the manual, write your own hello world, load the page and the dreaded "Parse error: parse error in /usr/local/apache/htdocs/test.php on line 2" error pops up in front of you. You know the scenario, read on to learn the fixes....
Introduction to Debugging and Error Checking
Debugging essentially means to track down an error in your code. Found a "bug" in your code? Then you need to "de-bug" it. This article will introduce you to some basic concepts such as error checking and built-in functions like var_dump() that will aid you in tracking down errors in your PHP applications.
Custom error pages using .htaccess
Learn how to make your own customised error pages.
Processing and Validating form Values with Redirection to Custom Error Pages
In this tutorial we'll see how to validate several different form fields, and if the verification fails, how to redirect users to custom error pages.
