How to Log or mail Errors in PHP Code
There are a number of things that can go wrong in code and they bound to through errors, even if you've tested them hundreds of times. PHP provides some error handling methods such as error_reporting(), set_error_handler(), error_log(), restore_error_handler() for handling errors in the PHP code.
error_reporting - Sets which PHP errors ...
0
Posted by Shahid