Error Handling
Results 1 - 6 of 6
How to Create Your Own Exception Classes in PHP
Learn to get control over how (or if) error messages are displayed to users, even though you're using several third-party libraries that each have their own views on handling errors.
Regular Expressions And Forms
Some basic examples of using regular expressions to validate user submitted form fields.
Writing Debuggable Code
For those of you who take on massive coding tasks such as creating an entire site from scratch, you'll notice that it tends to become tedious to debug your code unless you've taken a few precautionary measures. This tutorial will start you off in the...
(show more)
A simple Custom Error Page Generator in PHP
This simple, free script, along with a few extra lines in your .htaccess file, allows the building of custom error pages on-the-fly. The coding principles and .htaccess requirements are discussed with examples, and a complete and commented PHP script...
(show more)
Mail on 404
A simple snippet of php code to insert in your custom 404 error page. It will send an e-mail when a visitor encounters a 404 page and certain conditions are met. The tutorial explains how the script works and where to insert the code.
Custom Error Handling with PHP
Custom error documents are a valuable tool to have. Using this tutorial you'll be able to redirect any user to a specified location on your site if they have reached an error such as Error 404 - Document Not Found or Error 500 - Internal server Error. ...
(show more)
