Re: Client Host Name

From: Date: Mon, 07 Aug 2000 04:28:54 +0000
Subject: Re: Client Host Name
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-10404@lists.php.net to get a copy of this message
Brian Clark wrote:
Marcio Endo wrote:
Hello everyone, How do I get the client hostname from PHP? Or is it even possible? It seems like HTTP_ENV_VARS["REMOTEHOST"] returns only the IP address of the
client.
Try $GLOBALS['HTTP_HOST']
Oops! Blabbering off at the mouth again. You said _client_. * REMOTE_HOST The hostname making the request. If the server does not have this information, it should set REMOTE_ADDR and leave this unset. * REMOTE_ADDR The IP address of the remote host making the request. http://hoohoo.ncsa.uiuc.edu/cgi/env.html

« previous php.general (#10404) next »