alindeman Mon May 31 13:17:03 2004 EDT
Modified files: /phpdoc/en/reference/network/functions syslog.xml Log: Typos in the example and don't use register_globals http://cvs.php.net/diff.php/phpdoc/en/reference/network/functions/syslog.xml?r1=1.5&r2=1.6&ty=u Index: phpdoc/en/reference/network/functions/syslog.xml diff -u phpdoc/en/reference/network/functions/syslog.xml:1.5 phpdoc/en/reference/network/functions/syslog.xml:1.6 --- phpdoc/en/reference/network/functions/syslog.xml:1.5 Mon Dec 15 11:52:20 2003 +++ phpdoc/en/reference/network/functions/syslog.xml Mon May 31 13:17:03 2004 @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.5 $ --> +<!-- $Revision: 1.6 $ --> <!-- splitted from ./en/functions/network.xml, last change in rev 1.9 --> <refentry id="function.syslog"> <refnamediv> @@ -80,7 +80,7 @@ // open syslog, include the process ID and also send // the log to standard error, and use a user defined // logging mechanism -openlog("myScripLog", LOG_PID | LOG_PERROR, LOG_LOCAL0); +openlog("myScriptLog", LOG_PID | LOG_PERROR, LOG_LOCAL0); // some code @@ -90,7 +90,7 @@ // unauthorized client! // log the attempt $access = date("Y/m/d H:i:s"); - syslog(LOG_WARNING, "Unauthorized client: $access $REMOTE_ADDR ($HTTP_USER_AGENT)"); + syslog(LOG_WARNING, "Unauthorized client: $access $_SERVER[REMOTE_ADDR] ($_SERVER[HTTP_USER_AGENT])"); } closelog();