Reply to Re: How to get visitor host name?

Your name:

Reply:


Posted by Gordon Burditt on 11/04/06 07:22

>I can get the IP address of a visitor on my site by
>
>$_SERVER['REMOTE_ADDR'];
>
>how do I get the corresponding URL. If the user is on Comcast, the URL
>(host name) may look like:
>
>d-20-19-24-30.hsd3.la.comcast.net
>
>That's the value I'm after.

A host name and a URL are not the same thing.

Use a reverse DNS lookup: see gethostbyaddr().

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация