diff --git a/reference/network/functions/syslog.xml b/reference/network/functions/syslog.xml index 5652467d22..445664c903 100644 --- a/reference/network/functions/syslog.xml +++ b/reference/network/functions/syslog.xml @@ -1,10 +1,10 @@ - + syslog - Generate a system log message + Generate a system log message Description @@ -90,7 +90,7 @@ if (authorized_client()) { // unauthorized client! // log the attempt $access = date("Y/m/d H:i:s"); - syslog(LOG_WARNING, "Unauthorized client: $access $_SERVER[REMOTE_ADDR] ($_SERVER[HTTP_USER_AGENT])"); + syslog(LOG_WARNING, "Unauthorized client: $access $_SERVER['REMOTE_ADDR'] ($_SERVER['HTTP_USER_AGENT'])"); } closelog(); @@ -112,7 +112,7 @@ closelog(); Use of LOG_LOCAL0 through - LOG_LOCAL7 for the facility + LOG_LOCAL7 for the facility parameter of openlog is not available in Windows.