Scriptplayground Network

Scriptplayground Preview
Fireworks CS4 Learning Center

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. This book explains the process of working with PHP in Flash, while creating real world examples that you can actually learn something from.

The Flash and PHP Bible has a dedicated forum for support and comments.

Scriptplayground » tutorials » php » Error Reporting In PHP

Error Reporting In PHP

Ever want to hide errors on a PHP page or just show really critical ones? If so, this article will explain them to you.

// Report all PHP errors
error_reporting(E_ALL);

Here is a table of different error levels, all linking back to PHP.net

error_reporting() level constants and bit values

value constant
1 E_ERROR
2 E_WARNING
4 E_PARSE
8 E_NOTICE
16 E_CORE_ERROR
32 E_CORE_WARNING
64 E_COMPILE_ERROR
128 E_COMPILE_WARNING
256 E_USER_ERROR
512 E_USER_WARNING
1024 E_USER_NOTICE
2047 E_ALL
2048 E_STRICT
| Print It |  Follow Scriptplayground on Twitter (@scriptplay)

Comments: Error Reporting In PHP

   Mon Jul 4, 2005 9:28 pm  
Most popular form of error reporting is E_ALL & E~NOTICE. Meaning show all errors except for notices.
 loop  Tue Jun 12, 2007 7:26 am  
none sense
Add a comment
Name:
Website:
Comment:
Please note: Offensive comments, flaming and spamming is not permitted on this site and your comment will be deleted immediately.

HTML is not allowed.

Please provide all comments in English so that others can help you. A common helper in this is to use an online translator.

As a security measure your ip will be recorded.
 
Anti-Robot Check:

Enter the key you see above.

What is this?: This extra test has been added due to the recent explosion of spam.
 
Google