函数:gztell()


gztell

取得压缩文件指针处。

语法: int gztell(int zp);

返回值: 整数

函数种类: 特殊文件格式

内容说明

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

使用范例

<?php
$exfile
=gzopen("/tmp/haha.gz""r");
$aline=gzgets($exfile80);
print(
"现在文件指针在第".gztell($exfile)."个位");
gzclose($exfile);
?>



[ 上一页 PHP 手册 下一页 ]

PHP 首页 | PHP 导读 | PHP 函数库 | PHP 函数索引 | PHP 范例程序