$curl = curl_init();
curl_setopt($curl, CURLOPT_URL, $url);
curl_setopt($curl, CURLOPT_HEADER, 0);
curl_setopt($curl, CURLOPT_SSL_VERIFYPEER, false);//关闭证书
curl_setopt($curl, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($curl, CURLOPT_TIMEOUT,8);
$file = curl_exec($curl);
curl_close($curl);
当我胡乱编一个地址时,域名超过7个字符时,例如:http://www.ffafffe.com/up358.jpg
得到的$file打印为:
string(686) "
为什么,有没有解决办法