到php.ini配置文件里面找到 allow_url_fopen = On 把Off设置为On即可 语法:file_get_contents(path,include_path,context,start,max_length) file_get_contents() 函数把整个文件读入一个字符串中。 和 file() 一样,不同的是 file_get_contents() 把文件读入一个字符串。 file_get_contents() 函数是用于将文件的内容读入到一个字符串中的首选方法。如果操作系统支持,还会使用内存映射技术来增强性能。
顶一下

(0)
0%
踩一下

(0)
0%
- 相关评论
- 我要评论
-