How to enable error reporting in Php code
A PHP application produces many levels of errors and warnings during the runtime of the script . This article eaplains the method to disaplay errors and warnings if any, while executing php code.
In-order to acheive the same we need to add the following lines at the top of the php code.
ini_set('display_errors', 1);
ini_set('display_startup_errors', 1);
error_reporting(E_ALL);
Now it will disaplay errors and warnings if any during the execution.
That's all...