[Bite-size 1] Finding errors in your code by enabling PHP error reporting.
This is a part of a series of (bite-size) tutorials that will shed light on a specific topic. In this first one we will look at a few ways to enabling debugging in PHP, to assist you in your development.
When developing in PHP you are bound to run into errors. Everyone does, its part of the development process.
A simple way to see if a script is not working properly is to enable error reporting in PHP. This is accomplished by adding this simple line in your PHP.
<?php error_reporting(E_ALL); // display all errors, including notices ini_set('display_errors', true); // display the errors to the screen. ?>
For a complete list of the error_reporting() types, check out this tutorial.
That's the end of this "bite-size" tutorial, more to come soon.
Validate Site: XHTML CSS | Designed by: Matthew Keefe of mkeefeDESIGN