超灬超  
$ip = $_SERVER['REMOTE_ADDR'];
        // $ip = '36.5.106.8';

        $ak = "你的百度APIAK";
        $url = "http://api.map.baidu.com/location/ip?ak=$ak&ip=$ip&coor=bd09ll";
        $re = file_get_contents($url);
        $re = json_decode($re);

  

posted on 2020-08-03 14:50  超灬超  阅读(1366)  评论(0编辑  收藏  举报