Class IpLocation

Description

IP 地理位置查询类 修改自 CoolCode.CN

Located in /ORG/Net/IpLocation.class.php (line 24)

Base
   |
   --IpLocation
Method Summary
IpLocation __construct ([string $filename = "UTFWry.dat"])
void __destruct ()
array getlocation ([string $ip = ''])
Methods
Constructor __construct (line 60)

构造函数,打开 QQWry.Dat 文件并初始化类中的信息

  • access: public
IpLocation __construct ([string $filename = "UTFWry.dat"])
  • string $filename
Destructor __destruct (line 234)

析构函数,用于在页面执行结束后自动关闭打开的文件。

  • access: public
void __destruct ()
getlocation (line 153)

根据所给 IP 地址或域名返回所在地区信息

  • access: public
array getlocation ([string $ip = ''])
  • string $ip

Documentation generated on Thu, 27 Mar 2008 08:20:46 +0000 by 塞北的雪