Debugging and Error Handling PHP Tutorials

As you gain experience, you'll make fewer errors and pick up your own debugging methodologies, but there are plenty of tools and techniques you can use to help. Learn: the various kind of errors and their causes that can occur when developing a dynamic Web site, debugging techniques, different techniques for handling the errors and more.
Home » PHP » Debugging and Error Handling (20 Tutorials)
Handling errors
Handling errors tutorial
As coders, I'm sure we all know the value of good error handling. So I thought a quick post about how Codeigniter deals with those pesky errors would be a good post. The way I see it, there are 2 types of errors we have to work with. The ones which are displayed out in nice friendly text to your users, and the type which are hidden and shown only to you as the coder to figure out where something has gone wrong.
Catch uncaught exceptions
Catch uncaught exceptions tutorial
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.
Exceptions - available information
Exceptions - available information tutorial
This 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.
Replace error reporting with exception handlers
Replace error reporting with exception handlers tutorial
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.
Debugging your Code
Debugging your Code tutorial
Finding errors in your code by enabling PHP error reporting.
PHP Warning: Module 'modulename' already loaded in Unknown on line 0
PHP Warning: Module 'modulename' already loaded in Unknown on line 0 tutorial
This page describes how to resolve the following PHP warning: PHP Warning: Module 'modulename' already loaded in Unknown on line 0.
Type hinting with PHP
Type hinting with PHP tutorial
PHP has supported type hinting for parameter functions from version 5.0 for objects and from version 5.1 for arrays. Type hinting means the function specifies what type the parameter must be and if it is not of the correct type an error will occur. Type hinting is not supported for other types, e.g. for strings and integers.
Catching PHP Exceptions-Except the unexpected
Catching PHP Exceptions-Except the unexpected tutorial
In this tutorial I'll show some important aspects to consider when planning exceptions.
PHP performance tips and tricks
PHP performance tips and tricks tutorial
In this php tutorial we will learn different PHP performance tips and tricks that will enhance the performance of development using php.
Debugging PHP with Xdebug
Debugging PHP with Xdebug tutorial
The Xdebug is the extension for PHP that helps debugging PHP scripts by providing a lot of valuable debug information. Using the Xdebug you can debug your scripts in the Notepad++ and other PHP IDEs.
Introduction to Debugging and Error Checking
Introduction to Debugging and Error Checking tutorial
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
Custom error pages using .htaccess tutorial
Learn how to make your own customised error pages.
PHP Debugging
PHP Debugging tutorial
Ok, so quite a lot of newbies to PHP commonly get syntax errors. I'm just going to post a few commonly known errors, failed remedies and the proper resorts to these errors.
Get rid of Warning: division by zero on line
Get rid of Warning: division by zero on line tutorial
Php is a great language because it allows you to create great web application but it may be useful even for calculations. Php is often used creating graphics on the fly starting from simple data. If you're projecting a script tide up with math you may encounter a typical error that come out when you try to divide a number by zero.
Debugging Your Mysql Queries
Debugging Your Mysql Queries tutorial
In this tutorial you are going to learn how to make your scripts easier to debug and how to make your errors more user friendly.
Errors and How to Fix Them
Errors and How to Fix Them tutorial
This tutorial will briefly describe some of the common errors in PHP.
Error Handling
Error Handling tutorial
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.
Mail on 404
Mail on 404 tutorial
A snippet of PHP code which will send you an e-mail every time a document is requested that is no longer there, ie when a 404 error comes up.
PHP Debugging
PHP Debugging tutorial
Debugging your code is a quite refined art that takes some time to snap into, but once you know where to look and what to look for, life instantly starts looking much much rosier. This tutorial is aimed at giving you the upper hand in debugging, so that you can spend more time with the juicy bits of coding.
Debugging PHP: Did You Remember to
Debugging PHP: Did You Remember to tutorial
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....
Home » PHP » Debugging and Error Handling (20 Tutorials)
 
Subcategories
 
Categories
 
Advertisement