curl_exec($ch);
if (curl_errno($ch)) {
echo 'error: ' . curl_error($ch);
}

整理自:http://www.tuicool.com/articles/RneYRv

Related Posts: PHP CURL 抓取失败 输出错误信息 :