成长值: 474
签到天数: 4783 天 [LV.Master]伴坛终老
|
发表于 2019/7/19 02:03
|
显示全部楼层
|阅读模式
|![](https://att.itzmx.com/source/plugin/chxs_icons/images/net/chrome.png) Google Chrome 74.0.3729.131 |![](https://att.itzmx.com/source/plugin/chxs_icons/images/os/win-5.png) Windows 10
- <?php
- $url = 'http://myip.ipip.net';
-
- $ch = curl_init();
- curl_setopt($ch, CURLOPT_URL, $url);
- curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
- curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, false);
- curl_exec($ch);
- curl_close($ch);
- ?>
复制代码
|
|