Hi, I would like to catch errors in PHP/MySQL and display a generic error message of some sort rather than just 'undefined' or whatever else it may be.
Can you advise how to correctly do this?
Printable View
Hi, I would like to catch errors in PHP/MySQL and display a generic error message of some sort rather than just 'undefined' or whatever else it may be.
Can you advise how to correctly do this?
I don't have time at the moment but the error message are saved to a text files in the same directory as the offending php file as they occur.
Edit:
Here is a link that might help:
http://www.w3schools.com/php/php_exception.asp
Also try Googling "Catch php errors" and see what useful links come up.
Hi thanks for the help, I use W3schools alot, and of course I search for the terms often - I just thought I'd ask here to find out what the professionals do rather than sift through various websites which don't teach the right/most uptodate method.