-
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)
-
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
-
-