how to disable errors php code example Example: php disable errors error_reporting(0); @ini_set('display_errors', 0);