PHP function error_log()

Availability in PHP 4.0

Send an error message somewhere

Parameters

Parameter Data type Default value Note
$message string not The error message that should be logged.
$message_type int null, Says where the error should go. The possible message types are as follows:
$destination string null, The destination. Its meaning depends on the message_type parameter as described above.
$extra_headers string null The extra headers. It's used when the message_type parameter is set to 1. This message type uses the same internal function as mail does.

Return values

bool

Returns true on success, otherwise false on failure.

Other resources

Official documentation for the error-log function

Newsletter

Nejlepsi tipy a triky o PHP do Vaseho e-mailu. Clanky a novinky nejen ze sveta PHP a programovani.