Enable PHP Error Reporting
To enable PHP error reporting in scripts, add
1 2 |
error_reporting(E_ALL); ini_set('display_errors', '1'); |
To avoid PHP scripts showing errors, add
1 2 |
error_reporting(0); ini_set('display_errors', '0'); |
See php