I would say
<?PHP
error_reporting(53);
...
?>
why 53?
--We are excluding E_NOTICE and E_WARNING
all the rest is better to left untouched.
error_reporting
(PHP3 , PHP4 )
error_reporting -- set which PHP errors are reported
Description
int error_reporting ([int level])
Sets PHP's error reporting level and returns the old level. The error reporting level is a bitmask of the following values (follow the links for the internal values to get their meanings):
Table 1. error_reporting() bit values
value internal name
1 E_ERROR
2 E_WARNING
4 E_PARSE
8 E_NOTICE
16 E_CORE_ERROR
32 E_CORE_WARNING