PHP. Руководство по PHP. 2005
error_reporting
error_reporting
Описание
int error_reporting ([int level])The error_reporting() function sets the error_reporting directive at runtime. PHP has many levels of errors, using this function sets that level for the duration (runtime) of your script.