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

 

posted @ 2013-06-18 18:08  尹少爷  阅读(319)  评论(0编辑  收藏  举报