Country name from an Ip address with free IP geolocation webservice

后端 未结 3 1114

First of all thanks to all ....

I read that i can use the free IP geolocation webservice to get Country name from an Ip address. But how i get the response to my si

3条回答
  •  -上瘾入骨i
    2021-01-01 09:16

    geoip_country_code_by_name can give you the country for an arbitrary IP address or hostname (not just the one from the current visitor as apache_note("GEOIP_COUNTRY_NAME") does), it uses the same MaxMind database. There is also the geoip_country_name_by_name function if you want the full country name rather than the ISO code.

提交回复
热议问题