Home > PHP > Suppress PHP Errors and Warning Messages
Bookmark and Share

Suppress PHP Errors and Warning Messages

Posted on August 12, 2013 | Filed in PHP

A quick way to suppress Errors and Warning Messages within PHP:

<?php
error_reporting(E_ERROR | E_PARSE);
?>

Of course, this is only good in a pinch. Fix the errors and warnings for the longer term.

Leave a Reply