how to catch the errors and warnings of PHP to build a log file
Greetings
How can I "catch" the errors and warnings of PHP and MySQL when somethig goes wrong, so the user don't see those messages on browser and I can create a log file with those message, or send email with the errors?