【www.gdgbn.com--linux】

file_get_contents函数有时出错 failed to open stream: HTTP request failed!

地址是上面的,有些地址可以,有些就 failed to open stream: HTTP request failed!,
file_get_contents 打开的都是些rar文件,和文件格式有没关系?html文件的确什么错都没,
rar有些地址出错,有些正常,出错的地址用IE打开是正常的

 

原因是,网络问题,或文件不存喽。

本文来源:http://www.gdgbn.com/caozuoxitong/16890/