How to enable error reporting in a PHP?
There are two ways to enable error reporting in your PHP .
1. You can add the following function in the .php file:
error_reporting(E_ALL);
2. You can add/enable the following option in the php.ini file for your web site:
error_reporting = E_ALL
To turn error reporting off for a single document, include this line in the .php file:
error_reporting(0);