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

Need help with Linux Server or WordPress? We can help!

Leave a Reply

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