|
-
Jul 26th, 2009, 02:55 PM
#1
Thread Starter
Hyperactive Member
Catch all errors
Hi, I would like to catch errors in PHP/MySQL and display a generic error message of some sort rather than just 'undefined' or whatever else it may be.
Can you advise how to correctly do this?
-
Jul 26th, 2009, 04:40 PM
#2
Re: Catch all errors
I don't have time at the moment but the error message are saved to a text files in the same directory as the offending php file as they occur.
Edit:
Here is a link that might help:
http://www.w3schools.com/php/php_exception.asp
Also try Googling "Catch php errors" and see what useful links come up.
Last edited by Nightwalker83; Jul 26th, 2009 at 05:42 PM.
Reason: Adding more!
when you quote a post could you please do it via the "Reply With Quote" button or if it multiple post click the "''+" button then "Reply With Quote" button.
If this thread is finished with please mark it "Resolved" by selecting "Mark thread resolved" from the "Thread tools" drop-down menu.
https://get.cryptobrowser.site/30/4111672
-
Jul 26th, 2009, 06:08 PM
#3
Thread Starter
Hyperactive Member
Re: Catch all errors
Hi thanks for the help, I use W3schools alot, and of course I search for the terms often - I just thought I'd ask here to find out what the professionals do rather than sift through various websites which don't teach the right/most uptodate method.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|