IP Address Converted to Computer Name

From: Date: Mon, 19 Nov 2001 17:38:31 +0000
Subject: IP Address Converted to Computer Name
Groups: php.general 
Request: Send a blank email to php-general+get-75127@lists.php.net to get a copy of this message
I am trying to convert an ip address to a computer name. Then I am putting it into the mail() script. However, when I do this it come up blank. I am putting $r_hostname in the mail() script. Can anyone tell me why its not working? The script I am using is: <? $r_hostname = gethostbyaddr($REMOTE_ADDR); if ($REMOTE_ADDR == "$r_hostname"); echo "$r_hostname"; ?> Thanks, Ben

« previous php.general (#75127) next »