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: [EMAIL PROTECTED] > [SMTP:[EMAIL PROTECTED] > 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"] > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php