You can enable the error reporting in the php by the following methods .
1 . You can set display_errors = 1 in php.ini file
2 . Or ini_set(‘display_errors’, 1) in script
Use “error_reporting(E_ALL)” to show the error messages in the site .
Use “error_reporting(0)” to hide the error messages in the site during the execution of program .