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().
Navigation:
[Reply to this message]
|