PHP 發送get請求
file_get_contents 方法:
$s = file_get_contents("http://apis.map.qq.com/ws/distance/v1/?mode=driving&from=30.56808,104.064305&to=30.5702,104.06476&key=your key"); $s = json_decode($s, true); message($s['result']);
PHP 發送get請求
file_get_contents 方法:
$s = file_get_contents("http://apis.map.qq.com/ws/distance/v1/?mode=driving&from=30.56808,104.064305&to=30.5702,104.06476&key=your key"); $s = json_decode($s, true); message($s['result']);
本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。