Trapping and masking errors

From: Date: Sun, 02 Dec 2001 20:01:34 +0000
Subject: Trapping and masking errors
Groups: php.db 
Request: Send a blank email to php-db+get-14742@lists.php.net to get a copy of this message
Hi, I have written a simple form emailer for my site. In it I check to see if the mail was sent successfully and if not I write some variables to an error log. My question is, I would also like to write any php errors to the log file, e.g. Warning: Failed to Connect in d:\WWW\htdocs/RND_ski-info-online/contact.php on line 152 how would I specify them in error_log()? Also how can I mask them from appearing in the visitor's browser window so that I can just write my "friendlier" error message there. Anyone hints, tips or just downright solutions would be greatly appreciated :) -torrent

« previous php.db (#14742) next »