English | 简体中文 | 繁體中文 | Русский язык | Français | Español | Português | Deutsch | 日本語 | 한국어 | Italiano | بالعربية
PHP Error & Loggings Reference Manual
The error_log() function sends error information to a location
bool error_log ( string $message [, int $message_type [, string $destination [, string $extra_headers]]] )
It sends the error message to the web server's error log, TCP port, or to a file.
Serial Number | Parameters and Description |
---|---|
1 | message The error message that should be logged. |
2 | message_type It indicates where the error should go. Possible message types may include-
|
3 | destination Specify where to send error messages. Its meaning is described above, determined by the message_type parameter. |
4 | extra_headers Additional headers. When message_type is set to 1 Use this when. This information type uses the same built-in function as mail(). |
Returns TRUE on success, FALSE on failure.