Yeah, I did look at the manual page, that was how I got the error_log()
function working. What I couldn't work out though was how to get the php
errors into the log. At the moment I use the error_log() to log some of my
scripts variables to an error.txt file. I also couldn't see a way of
preventing the php errors from appearing in the broswer window.
I'll take a look at the ob_start and ob_end_clean though,thanks.
"Yasuo Ohgaki" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Torrentuk wrote:
> > Hi,
> > I have written a simple form emailer for my site. In it I check to see
> > the mail was sent successfully and if not I write some variables to an
> > log. My question is, I would also like to write any php errors to the
> > file, e.g.
> > Warning: Failed to Connect in
> > 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
> > :)
> > -torrent
> How about take a look at the manual page?
> You may also be interested in output buffering.
> Look for ob_start(), ob_end_clean(), etc.
> Yasuo Ohgaki
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]