1
我得到下面這個簡單的捲曲代碼:捲曲返回錯誤111插座
$target = "/plugin/api_register.php?name=$activation_name&key=$activation_key&url=$siteurl";
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, 'http://domain.com'.$target);
curl_setopt($ch, CURLOPT_REFERER, $siteurl);
curl_setopt($ch, CURLOPT_USERAGENT, $useragent);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_TIMEOUT, 30);
curl_setopt($ch, CURLOPT_VERBOSE, 1);
$output = curl_exec($ch);
if (empty($output))
{
// some kind of an error happened
die(curl_error($ch));
}
curl_close($ch);
print_r($output);
我得到的是套接字錯誤:111 ,我不能弄清楚,爲什麼它不會connect.pls幫助