Enable PHP Error Reporting

To enable error reporting in PHP script, add

error_reporting(E_ALL);
ini_set('display_errors', '1');

To avoid PHP scripts showing errors, add

error_reporting(0);
ini_set('display_errors', '0');

See php

Comments

Leave a Reply

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