Posted by Exyle on 06/05/05 06:10
$_SERVER[REMOTE_ADDR] contains the persons IP, you can make a script
that saves it into a text file, database etc and generate links that go
to an IP lookup site (eg
http://ws.arin.net/cgi-bin/whois.pl?queryinput=192.168.0.0)
Peter Van Hove wrote:
> I wonder if it is possible to get the IP of the visitor via PHP ?
> And additionally, get the geographical region for that IP ?
>
> It would be cool to be able to build a $url to a page which is most relevant
> for the visitor.
>
> Is this possible ?
> If so, how ?
>
>
[Back to original message]
|