Go Back   CodingForums.com > :: Server side development > PHP

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 01-10-2004, 06:59 PM   PM User | #1
sgalmeida
New Coder

 
Join Date: Jan 2004
Posts: 13
Thanks: 0
Thanked 0 Times in 0 Posts
sgalmeida is an unknown quantity at this point
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?



Thank ou very much

Sérgio
sgalmeida is offline   Reply With Quote
Old 01-11-2004, 01:48 AM   PM User | #2
lslars31
New to the CF scene

 
Join Date: Jul 2003
Location: Minnesota
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
lslars31 is an unknown quantity at this point
most hosting sites automatically do this for you. In the directory with the error it will create a log file for you.
lslars31 is offline   Reply With Quote
Old 01-11-2004, 02:16 AM   PM User | #3
bored
New Coder

 
Join Date: Jan 2003
Location: Tulsa, OK
Posts: 69
Thanks: 0
Thanked 0 Times in 0 Posts
bored is an unknown quantity at this point
http://us2.php.net/manual/en/function.error-log.php
bored is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 05:20 AM.


Advertisement
Log in to turn off these ads.