Re: cvs: phpdoc /en/reference/network/functions syslog.xml
| From: | Carola 'Sammy' Kummert | Date: | Mon, 15 Jan 2007 10:44:08 +0000 |
| Subject: | Re: cvs: phpdoc /en/reference/network/functions syslog.xml | ||
| References: | 1 2 | Groups: | php.doc |
| Request: | Send a blank email to phpdoc+get-969374811@lists.php.net to get a copy of this message | ||
Derick Rethans wrote:
> On Mon, 15 Jan 2007, Carola 'Sammy' Kummert wrote:
>> - 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'])");
>
> That won't work, you need to use { and } :
>
> syslog(LOG_WARNING, "Unauthorized client: $access {$_SERVER['REMOTE_ADDR']}
> ({$_SERVER['HTTP_USER_AGENT']})");
right. I'll fix it with the next update - but think it is better
to use the {$foo['bar']} syntax than the one without associative
array key string delimiter.
Regards,
Sammy