...

View Full Version : how to catch the errors and warnings of PHP to build a log file



sgalmeida
01-10-2004, 06:59 PM
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?



Thank ou very much

SÚrgio

lslars31
01-11-2004, 01:48 AM
most hosting sites automatically do this for you. In the directory with the error it will create a log file for you.

bored
01-11-2004, 02:16 AM
http://us2.php.net/manual/en/function.error-log.php



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum