压缩函数库:gzrewind

gzrewind

(PHP3 , PHP4)

gzrewind ---&">nbsp; 重设压缩文件指标的位置

语法 : int gzrewind (int zp)

说明 :

设定文件指标fp的位置到文件的开始处。

如果发生错误则传回0。

压缩文件指标必须是有效的,并且是以gzopen( )成功开启时的指标。

参考 : gzseek( )  gztell( )

时间: 2024-08-06 15:38:39

压缩函数库:gzrewind的相关文章

压缩函数库:gztell

gztell (PHP3 , PHP4) gztell ---&http://www.aliyun.com/zixun/aggregation/37954.html">nbsp; 取得压缩文件指标的位置 语法 : int gztell (int zp) 说明 : 传回压缩文件指标zp的位置. 如果发生错误则传回false. 压缩文件指标必须是有效的,且是以gzopen( )成功开启时的指标. 参考 : gzopen( )  gzseek( )  gzrewind( )

压缩函数库:gzseek

gzseek (PHP3 , PHP4) gzseek ---&http://www.aliyun.com/zixun/aggregation/37954.html">nbsp; 移动压缩文件指标 语法 : int gzseek (int zp, int offset) 说明 : 设定压缩文件指标zp到offset位元组处,相当于呼叫C语言的gzseek( zp , offset , SEEK_SET). 成功则传回0,失败则传回-1,注意 : 此移动通过文件的结尾并不会认为是个错

压缩函数库:gzwrite

gzwrite (PHP3 , PHP4) gzwrite ---&http://www.aliyun.com/zixun/aggregation/37954.html">nbsp; 将资料写入压缩文件 语法 : int gzwrite (int zp, string string [, int length]) 说明 : gzwrite( )将string的内容写到指标zp的压缩文件资料流,如果有给予参数length,当length位元组已写入或是到达string的结尾时,将会停

压缩函数库:gzcompress

gzcompress (PHP4 >= 4.0.1) gzcompress ---&http://www.aliyun.com/zixun/aggregation/37954.html">nbsp; 压缩一字符串 语法 : string gzcompress (string data [, int level]) 说明 : 此函数传回一个输入值data的gzip压缩版本,失败则传回false.非必需参数level可以给予0到9,0表示无压缩,9表示最大的压缩. 参考 : gz

压缩函数库:gzopen

.gzopen (PHP3 , PHP4) gzopen ---&http://www.aliyun.com/zixun/aggregation/37954.html">nbsp; 开启压缩档 语法 : int gzopen (string filename, string mode [, int use_include_path]) 说明 : 开启一个gzip(.gz)文件,用来读取或写入,参数mode和fopen( )("rb" 或 "wb&quo

压缩函数库:gzuncompress

gzuncompress (PHP4 >= 4.0.1) gzuncompress ---&http://www.aliyun.com/zixun/aggregation/37954.html">nbsp; 将压缩的字符串解压缩 语法 : string gzcompress (string data [, int length]) 说明 : 此函数取gzcompress( )所压缩的资料data,并且传回原本未压缩的资料,发生错误则传回false.如果解压缩的资料大于参数le

压缩函数库:readgzfile

readgzfile (PHP3 , PHP4) readgzfile ---&http://www.aliyun.com/zixun/aggregation/37954.html">nbsp; 输出压缩档 语法 : int readgzfile (string filename [, int use_include_path]) 说明 : 读取一个文件,将它解压缩并且写到标准输出. gzopen( )可以用来读取不是gzip格式的文件,如此一来gzopen( )将会从没有解压的文

压缩函数库:gzread

.gzread (PHP3 , PHP4) gzread ---&http://www.aliyun.com/zixun/aggregation/37954.html">nbsp; 读取指定长度字符串 语法 : string gzread (int zp, int length) 说明 : gzread( )从压缩文件指标fp读取length位元组,当length位元组已读取或是到达文件的结尾时,读取都将会停止. Example : <?php // get contents

压缩函数库:gzclose

gzclose (PHP3 , PHP4) gzclose ---&http://www.aliyun.com/zixun/aggregation/37954.html">nbsp; 关闭压缩文件指标 语法 : int gzclose (int zp) 说明 : 关闭压缩文件指标zp. 成功则传回true,失败则传回false. 压缩文件指标必须是有效的,并且是以gzopen( )成功开启时的指标.