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?
@pyroJan 10.2004 — #Depending on what you want to do, you can use the error suppressor (@) on a per-error basis, or you can set the error reporting level to [font=monospace]error_reporting(0);[/font]. (http://us2.php.net/manual/en/ref.errorfunc.php) As far as what to do with the errors, see http://us2.php.net/error_log