Results 1 to 4 of 4

Thread: Error handling

  1. #1

    Thread Starter
    l33t! MrPolite's Avatar
    Join Date
    Sep 2001
    Posts
    4,428

    Error handling

    I'm desperetly looking for an error handling function, something like Try...Catch...Finally, or our ole' On Error method (I want it to find unexpected errors on a page and show a custom warning message to the user, instead of the PHP engine showing the line error)

  2. #2
    Member
    Join Date
    Jan 2002
    Location
    India
    Posts
    50
    Try using the set_error_handler() function to designate a custom function as your error handler. Sort of routing all errors in vb to the same place.
    See the php manual:
    http://www.php.net/manual/en/functio...or-handler.php
    and
    http://www.php.net/manual/en/feature...r-handling.php

    for explanations and examples.

    HTH

    Thanks
    hardcoder

  3. #3

    Thread Starter
    l33t! MrPolite's Avatar
    Join Date
    Sep 2001
    Posts
    4,428
    tnx

  4. #4
    Member
    Join Date
    Jan 2002
    Location
    India
    Posts
    50
    HTH. Anytime.

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