PHP教程: curl抓取报错分析

SSL certificate problem: self signed certificate in certificate chain

解决办法:设定为不验证证书和host

curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, FALSE);
curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, FALSE);