成长值: 342 签到天数: 4739 天 [LV.Master]伴坛终老
|
发表于 2019/7/19 02:03
|
显示全部楼层
|阅读模式
|Google Chrome 74.0.3729.131 |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);
- ?>
复制代码
|
|