Results 1 to 3 of 3

Thread: Catch all errors

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Feb 2006
    Location
    From the UK
    Posts
    422

    Question 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?

  2. #2
    PowerPoster Nightwalker83's Avatar
    Join Date
    Dec 2001
    Location
    Adelaide, Australia
    Posts
    13,344

    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

  3. #3

    Thread Starter
    Hyperactive Member
    Join Date
    Feb 2006
    Location
    From the UK
    Posts
    422

    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
  •  



Click Here to Expand Forum to Full Width