Web Technology II20795 marksError handling and error handlers
What is error handler? Write a PHP program to show use of error handler to format and print errors.
What is error handler? Write a PHP program to show use of error handler to format and print errors. [5]
An error handler is a function of your own that PHP calls whenever it raises a diagnostic, in place of printing its built in message. Instead of a raw grey line of text in the middle of a page, the handler receives the details as arguments and can format them, write them to a log, show a friendly...