Consulteu les constants que defineixen cada nivell d'error a:
http://www.php.net/manual/en/errorfunc.constants.php
http://php.net/manual/en/errorfunc.configuration.php
http://www.php.net/manual/en/function.error-reporting.php
Un exemple de com activar des de codi els errors:
<?php error_reporting(E_ALL); ini_set("display_errors", 1); // the rest of your script... ?>
Un exemple de com canviar temporalment el error reporting:
$old_level_reporting=error_reporting(); error_reporting(E_ALL ^ E_NOTICE); ... ... RESTA DE CODI ... error_reporting($old_level_reporting);
Nota: també pot ser una configuració del fitxer php.ini:
http://www.php.net/manual/en/errorfunc.constants.php
http://php.net/manual/en/errorfunc.configuration.php