ThinkChat2.0新版上线,更智能更精彩,支持会话、画图、视频、阅读、搜索等,送10W Token,即刻开启你的AI之旅 广告
# http\_get() ## http\_get() ``` <pre class="calibre11">``` http_get($url, $timeout = 5, $times = 3) ``` ``` #### 【功能】 通过一个 HTTP GET 获取内容。 #### 【参数】 ``` <pre class="calibre11">``` $url:完整的网址 $timeout:超时时间,单位为秒 $times:重试次数 ``` ``` #### 【用例】 ``` <pre class="calibre11">``` <?php include './xiunophp/xiunophp.php'; echo http_get("http://bbs.xiuno.com/"); /* 结果: ... */ ?> ``` ```