RE: [PHP] IP Address Variable
| From: | Ben Clumeck | Date: | Wed, 14 Nov 2001 23:07:41 +0000 |
| Subject: | RE: [PHP] IP Address Variable | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-74652@lists.php.net to get a copy of this message | ||
Jim,
Thanks for your quick response. I looked over the URL and tried it but it
doesn't seem to work.
I tried:
<?php
$name = gethostbyaddr($ip);
print ("$ip is $name\n");
?>
Any advice would be appreciated.
Ben
-----Original Message-----
From: Jim Lucas [mailto:or001@bend.com]
Sent: Wednesday, November 14, 2001 2:57 PM
To: Ben Clumeck; php-general@lists.php.net
Subject: Re: [PHP] IP Address Variable
check this out
http://www.php.net/manual/en/function.gethostbyaddr.php
jim
----- Original Message -----
From: "Ben Clumeck" <bclumeck@home.com>
To: <php-general@lists.php.net>
Sent: Wednesday, November 14, 2001 2:48 PM
Subject: [PHP] IP Address Variable
> I currently log ip address that reach my site. However, I want to be
able
> to log both the ip address and remote name. Can anyone help?
>
> Thanks,
>
> Ben
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net
> For additional commands, e-mail: php-general-help@lists.php.net
> To contact the list administrators, e-mail: php-list-admin@lists.php.net
>
>