php file_get_contents fopen 连接远程文件

1 使用file_get_contents和fopen必须空间开启allow_url_fopen。
2 方法:
3 
4 编辑php.ini,设置allow_url_fopen =true
5 On,allow_url_fopen关闭时fopen和file_get_contents都不能打开远程文件。
原文地址:https://www.cnblogs.com/zhangjun516/p/3142821.html