Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /home/zhenxiangba/zhenxiangba.com/public_html/phproxy-improved-master/index.php on line 456
PHP: gzpassthru - Manual
[go: Go Back, main page]

PHP
downloads | documentation | faq | getting help | mailing lists | reporting bugs | php.net sites | links | conferences | my php.net

search for in the

gzputs" width="11" height="7"/> <gzopen
Last updated: Mon, 05 Feb 2007

view this page in

gzpassthru

(PHP 4 <= 4.2.3)

gzpassthru — gzファイルへのポインタから残りのデータ全部を出力する

説明

int gzpassthru ( resource zp )

gz ファイルポインタについて現在位置から EOF までデータを読み込み、 標準出力に (解凍された) 結果を書き込みます。

注意: すでにデータをファイルに書き込んでいる場合、 ファイルポインタをファイルの先頭にセットするために gzrewind() をコールする必要があるかも知れません。

ティップ

修正や特定のオフセットへの移動なしに ファイルの内容を出力バッファにダンプしたいだけの場合、 readgzfile() 関数を使用することもできます。 これにより、gzopen() をコールする手間を省くことができます。

パラメータ

zp

gz ファイルポインタを指定します。これは有効なファイルポインタであり、 かつ、gzopen() によりオープンできたファイルを指している必要があります。

返り値

gz から読み込んで解凍され、入力に渡された文字数。 もしくはエラー時に FALSE

例 2547. gzpassthru() の例

<?php
$fp
= gzopen('file.gz', 'r');
gzpassthru($fp);
gzclose($fp);
?>



add a note add a note User Contributed Notes
gzpassthru
There are no user contributed notes for this page.

gzputs" width="11" height="7"/> <gzopen
Last updated: Mon, 05 Feb 2007
 
 
show source | credits | sitemap | contact | advertising | mirror sites