本文介绍了确定我的网站访问者的国家的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我想识别我的访客来自使用php的国家。
我该怎么做?
I want to identify the country my visitors come from using php.How can I do this?
推荐答案
您需要使用PHP GeoIP扩展,您可以找到各种信息关于通过IP的用户。
You need to use the PHP GeoIP extension that allows you to locate various information about the users via IP. http://us.php.net/geoip
或者您也可以使用Maxmind的API访问数据。
or you can use Maxmind's API to access the data aswell. http://www.maxmind.com/app/php
这篇关于确定我的网站访问者的国家的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!