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']);

 


 

相关文章:

  • 2022-12-23
  • 2022-03-06
  • 2021-09-26
  • 2021-11-23
  • 2021-08-31
  • 2021-08-09
  • 2022-02-07
猜你喜欢
  • 2021-09-27
  • 2022-03-01
  • 2021-09-12
  • 2021-09-28
  • 2021-10-03
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案