php gzread函数-压缩文件函数库
压缩文件读出指定长度字符串。语法: string gzread(int zp, int length);
返回值: 字符串
函数种类: 特殊文件格式
内容说明本函数用来读取指定长度的字符串。参数 gz 为开文件的代码。参数 length 为指定长度。
使用范例
<?php
$filename="/temp/sosofile.txt.gz";
$zd=gzopen($filename,"r");
$contents=gzread($zd,10000);
gzclose($zd);
?>
页:
[1]