<?php
// Turn off error reporting
error_reporting(0);
// Report runtime errors
error_reporting(E_ERROR | E_WARNING | E_PARSE);
// Report all errors
error_reporting(E_ALL);
// Same as error_reporting(E_ALL);
ini_set(“error_reporting”, E_ALL);
// Report all errors except E_NOTICE
error_reporting(E_ALL & ~E_NOTICE);
?>
It’s important to note that if error reporting is disabled at the INI level, compile errors will not be shown on the page. It can drive you crazy to debug in such an environment
LikeLike
Yes if we disabled error reporting it won’t shows any type of errors normally this thing will use for disabling “Notices” & “warnings”
LikeLike