Categories
PHP

PHP: To turn off only warnings and still show errors

Use the following line on your code:

error_reporting(E_ERROR);

You can also turn it off on your php.ini file (not recommended):

error_reporting = E_ERROR

Leave a Reply

Your email address will not be published. Required fields are marked *