using System; using System.IO; using System.Net; using System.Text; using System.Web.Script.Serialization; namespace IpUtils { public class IpDetail { public String Ret { get; set; } public String Start { get; set; } public String End { get; set; } p
class IPAddress extends Common { /** * 根据ip地址,获取用户所在省市 */ public function ipIndex() { $ip = "222.22.22.11";// 默认设置一个ip地址(可自行获取) include "../vendor/topthink/Iplocation.php";//引入文件 $Ips =new \IpLocation\IpLocation('UTFWry.dat'); // 实例化类