Home >Backend Development >PHP Tutorial >PHP gets current geographical location interface based on IP address
There are other methods: Tencent Sina's interface to obtain the current geographical location (province) through IP address Tencent’s interface is and returns an array http://fw.qq.com/ipaddress Return value var IPData = new Array("61.135.152.194","","Beijing City",""); Sina interface: http://int.dpool.sina.com.cn/iplookup/iplookup.php?format=js Multi-region testing method: http://int.dpool.sina.com.cn/iplookup/iplookup.php?format=js&ip=218.192.3.42 Easy to use:
>>> |