内容不会从文件中加载,这是我的 curl 代码,
curl_setopt($curl, CURLOPT_RETURNTRANSFER, 1);
// GET CONTENTS OF HASHES.TXT
curl_setopt($curl, CURLOPT_URL, 'http://xxx.com/api/x.txt');
// SUCCESSFULY OPENED HASHES.TXT
$file = curl_exec($curl);
echo $file; // RETURNS NOTHING
echo curl_error($curl); // COULDN'T CONNECT TO HOST
echo curl_getinfo($curl, CURLINFO_HTTP_CODE); // 0
curl 正在工作,因为我之前在脚本的上方打开了其他网页,
谢谢