复制代码 代码如下: $url = ‘http://www.baidu.com'; $ch = curl_init(); $timeout = 10; curl_setopt ($ch, curlopt_url, $url); curl_setopt($ch, curlopt_header, 1); curl_setopt ($ch, curlopt_returntransfer, 1); curl_setopt ($ch, curlopt_connecttimeout, $timeou
时间:2025-01-16 | 阅读:221