file_get_contents()
来源:互联网 发布:农村淘宝服务站怎么赚钱 编辑:程序博客网 时间:2024/05/16 14:45
定义和用法
file_get_contents() 函数把整个文件读入一个字符串中。
和 file() 一样,不同的是 file_get_contents() 把文件读入一个字符串。
file_get_contents() 函数是用于将文件的内容读入到一个字符串中的首选方法。如果操作系统支持,还会使用内存映射技术来增强性能。
语法
file_get_contents(path,include_path,context,start,max_length)
可选。规定文件句柄的环境。
context 是一套可以修改流的行为的选项。若使用 null,则忽略。
start可选。规定在文件中开始读取的位置。该参数是 PHP 5.1 新加的。max_length可选。规定读取的字节数。该参数是 PHP 5.1 新加的。说明
对 context 参数的支持是 PHP 5.0.0 添加的。
提示和注释
注释:本函数可安全用于二进制对象。
0 0
- file_get_contents
- file_get_contents
- file_get_contents()
- php file_get_contents
- file_get_contents使用
- file_get_contents 小结
- file_get_contents 小结
- PHP file_get_contents
- file_get_contents网页抓取
- FILE_GET_CONTENTS 加数据头
- PHP file_get_contents() 函数
- php file_get_contents 报错
- file_get_contents、cur、fsockopen
- file_get_contents被屏蔽解决方法
- file_get_contents和fsockopen
- exec() file_get_contents() file_put_contents() 示例
- php file_get_contents超时解决
- file_get_contents和curl函数
- WSN覆盖率求解
- java--IO流缓冲区,装饰设计模式
- 直塞球过掉了恒大
- phonegap 3.40 for android移动开发框架window系统下安装过程
- 【计算机网络常见面试题】超网的IP地址斜线记法
- file_get_contents()
- 2014/03/29
- Python进阶(一)
- 求一元二次方程的根:浮点数中的“0”
- eclipse中的R出现的问题
- 一维数组的初始化问题
- 装饰者模式&代理模式
- 贪心算法精讲
- the c program1.8