774530750 发表于 2017-4-7 11:42:17

php gztell函数-压缩文件函数库

取得压缩文件指针处。
语法: int gztell(int zp);
返回值: 整数
函数种类: 特殊文件格式

内容说明本函数用来取得压缩文件的文件操作指针在某位处。参数 zp 为开文件代码。

使用范例
<?php
$exfile=gzopen("/tmp/haha.gz","r");
$aline=gzgets($exfile,80);
print("现在文件指针在第".gztell($exfile)."个位");
gzclose($exfile);
?>
页: [1]
查看完整版本: php gztell函数-压缩文件函数库