最近在研究PHP解析JSON,怎奈技术不过关,问了一下相关同学,获取到了解决办法,废话不多,直接上代码: <?php $ip = $_SERVER["REMOTE_ADDR"]; $url = "http://ip.taobao.com/service/getIpInfo.php?ip={$ip}"; //获取API返回值 $html = file_get_contents($url); $srt = json_decode($html); //echo $html; $addres...
最近更新文章
-
更新时间: 10 天前
-
更新时间: 2023-02-15
-
更新时间: 2023-02-14
-
Centos6&Centos7下rpm升级OpenSSH到openssh-9.2p1版本
更新时间: 2023-02-14
-
整理Linux默认源,包括CentOS、Debian、Ubuntu众多版本
更新时间: 2023-01-16