跳至
/**
* 获取IP地区
* Enter description here ...
* @param unknown_type $ip
*/
function GetArea($ip){
$url = "http://ip168.com/ip/?ip=".$ip;
$contents = file_get_contents($url);
// preg_match_all('/