The Flash and PHP Bible has been released! The book can be found on Amazon or wherever fine books are sold in your area.
The Flash and PHP Bible has a forum for quick support.
[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.
Follow Scriptplayground on Twitter (@scriptplay)
©2004 - 2012 scriptplayground | Privacy Policy | Legal
Validate Site: XHTML CSS | Designed by: Matthew Keefe of mkeefeDESIGN