Suscriber with us



Receive HTML?

Syndicate

Error functions PDF Print E-mail

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 

debug_print_backtrace() 

Prints a backtrace 

error_get_last() 

Gets the last error occurred 

error_log() 

Sends an error to the server error-log, to a file or to a remote destination 

error_reporting() 

Specifies which errors are reported 

restore_error_handler() 

Restores the previous error handler 

restore_exception_handler() 

Restores the previous exception handler 

set_error_handler() 

Sets a user-defined function to handle error

 

set_exception_handler() 

Sets a user-defined function to handle exceptions 5

trigger_error() 

Creates a user-defined error message 

user_error() 

Alias of trigger_error() 




Last Updated ( Thursday, 03 April 2008 )
 
< Prev   Next >

Polls

Which is the best Scripting language?