Name
error_log
Synopsis
int error_log(stringmessage
, inttype
[, stringdestination
[, stringheaders
]])
Records an error message to the web server’s error log, to an email address, or to a file. The first parameter is the message to log. The type is one of the following:
| Message is sent to the PHP system
log; the message is put into the file pointed at by the
|
| Message is sent to the email address destination. If specified, headers provides optional headers to use when creating the message (see mail for more information on the optional headers). |
| Appends
|
Get Programming PHP, 2nd Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.