gztell
取得壓縮文件指針處。
語法: int gztell(int zp);
返回值: 整數
函數種類: 特殊文件格式
本函數用來取得壓縮文件的文件操作指針在某位處。參數 zp 為開文件代碼。
<?php $exfile=gzopen("/tmp/haha.gz", "r"); $aline=gzgets($exfile, 80); print("現在文件指針在第".gztell($exfile)."個位"); gzclose($exfile); ?>
整理: 夕垌菪姬 (天地JPLOP)
|