|
Page 1 of 2 PHP Error and Logging Introduction The error and logging functions allows error handling and logging. The error functions allow users to define error handling rules, and modify the way the errors can be logged. The logging functions allow users to log applications and send log messages to email, system logs or other machines. Installation The error and logging functions are part of the PHP core. There is no installation needed to use these functions. PHP Error and Logging Functions PHP: indicates the earliest version of PHP that supports the function. | Function | Description | PHP | debug_backtrace() | Generates a backtrace | 4 | debug_print_backtrace() | Prints a backtrace | 5 | error_get_last() | Gets the last error occurred | 5 | error_log() | Sends an error to the server error-log, to a file or to a remote destination | 4 | error_reporting() | Specifies which errors are reported | 4 | restore_error_handler() | Restores the previous error handler | 4 | restore_exception_handler() | Restores the previous exception handler | 5 | set_error_handler() | Sets a user-defined function to handle error | 4 | set_exception_handler() | Sets a user-defined function to handle exceptions | 5 | trigger_error() | Creates a user-defined error message | 4 | user_error() | Alias of trigger_error() | 4 |
<< Start < Prev 1 2 Next > End >> |
|
Last Updated ( Thursday, 03 April 2008 )
|