Re: How to resolve IP with PHP
| From: | gaouzief | Date: | Mon, 21 Jan 2002 08:32:32 +0000 |
| Subject: | Re: How to resolve IP with PHP | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-81333@lists.php.net to get a copy of this message | ||
hi,
i think there is a function that does just that
look for gethostbyaddr($ip) in the documentation
beware of the implication on the ressources , this function performs a reverse dns lookup which can
be time consuming
regards
21/01/2002 08:20:48, Police Trainee <policetrainee@yahoo.com> wrote:
>Hello. Can anyone tell me how to resolve an IP into a
>hostname? I've tried $REMOTE_HOST but all i get back
>from it is the ip or blank. Is there another
>environmental variable i need to use or do i have to
>do something more complicated?
>
>thanks sooooo much!
>-mark
>
>__________________________________________________
>Do You Yahoo!?
>Send FREE video emails in Yahoo! Mail!
>http://promo.yahoo.com/videomail/
>
>--
>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
>
>
>