Subscribe to Tutorial Feed

Flash and PHP Bible

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.

Scriptplayground » tutorials » php » Debugging your PHP Code

Debugging your PHP Code

[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.

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)

Comments: Debugging your PHP Code

No Comments have been made. Wanna be the first?
Add a comment
The ability to add new comments has been disabled in this archived version.

Main | Tutorials | Articles