首页 > 技术文章 > php file_get_contents fopen 连接远程文件

zhangjun516 2013-06-18 18:08 原文

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都不能打开远程文件。

 

推荐阅读