• info@bizmate.biz

Enable PHP Errors

Enable PHP Errors

These following methods can be used to enable display of errors

ini_set('display_errors', 1);

Enable logging of error

ini_set('log_errors', 1);

Specify error logging file path

ini_set('error_log', dirname(__FILE__) . '/error_log.txt');

Specify what levels of error PHP will record , in this case all


The above can be very helpful for quick debugging but not suggested on production.