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.
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 |
Follow Scriptplayground on Twitter (@scriptplay)
|
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
|
©2004 - 2012 scriptplayground | Privacy Policy | Legal
Validate Site: XHTML CSS | Designed by: Matthew Keefe of mkeefeDESIGN