RE: [PHP] $REMOTE_HOST in email subject
| From: | Birkholz, James | Date: | Mon, 16 Feb 2004 00:52:23 +0000 |
| Subject: | RE: [PHP] $REMOTE_HOST in email subject | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-177760@lists.php.net to get a copy of this message | ||
You're right, the addr is what I really want, and
_SERVER["REMOTE_ADDR"] works, but when I tried the _SERVER["REMOTE_HOST"],
it is still empty, so my web host must HostnameLookups OFF. Problem solved,
and "thanks" to all!
James
> -----Original Message-----
> From: php-list-replies@listmail.innovate.net
> [SMTP:php-list-replies@listmail.innovate.net]
> Sent: Sunday, February 15, 2004 6:25 PM
> To: Birkholz, James
> Subject: Re: [PHP] $REMOTE_HOST in email subject
>
> the environment variable "REMOTE_HOST" is the hostname, not the
> IPnumber "REMOTE_ADDR" is the IPnumber.
>
> separately, your problem may be that with current versions of PHP
> that syntax is no longer supported (for security reasons). the
> correct syntax is:
>
> _SERVER["REMOTE_ADDR"]
>