完美解决failed to open stream: HTTP request failed!(file_get_contents引发的)

当使用php5自带的file_get_contents方法来获取远程文件的时候,有时候会出现file_get_contents(): failed to open stream: HTTP request failed!这个警告信息。php google或者baidu一下,好多这样的问题,解决的方法都是修改php.ini,把allow_url_fopen给启用,改为 allow_url_fopen
相关文章
相关标签/搜索