21,886
社区成员
发帖
与我相关
我的任务
分享
<?php
$url="http://s134.hzw.91wan.com/api/active?qid=120581680&server_id=S134";
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_HEADER, 0);
curl_exec($ch);
curl_close($ch);
?>
<?php
$url="http://s134.hzw.91wan.com/api/active?qid=120581680&server_id=S134";
$c = curl_init();
curl_setopt($c, CURLOPT_URL, $url);
//Tell curl to write the response to a variable
curl_setopt($c, CURLOPT_RETURNTRANSFER, 1);
// The maximum number of seconds to allow cURL functions to execute.
curl_setopt($c, CURLOPT_CONNECTTIMEOUT, 60);
$buf = curl_exec($c);
var_dump($buf);
?>