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: gzinflate - 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

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

view this page in

gzinflate

(PHP 4 >= 4.0.4, PHP 5)

gzinflate — deflate圧縮された文字列を解凍する

説明

string gzinflate ( string data [, int length] )

この関数は収縮された文字列を伸長します。

パラメータ

data

gzdeflate() により圧縮されたデータを指定します

length

デコードする最大データ長を指定します

返り値

オリジナルの無圧縮なデータ、もしくはエラー時に FALSE

この関数は、もし無圧縮なデータが圧縮された入力 data の 32768 倍、もしくはオプションのパラメータ length 以上の場合、エラーを返します。

例 2545. gzinflate() の例

<?php
$compressed 
= gzdeflate('Compress me', 9);
$uncompressed = gzinflate($compressed);
echo
$uncompressed;
?>

参考

gzdeflate()
gzcompress()
gzuncompress()
gzencode()



add a note add a note User Contributed Notes
gzinflate
spikeles_ at hotmail dot com
02-Nov-2006 01:12
This can be used to inflate streams compressed by the Java class java.util.zip.Deflater but you must strip the first 2 bytes off it. ( much like the above comment )

$result = gzinflate(substr($compressedData, 2))
boris at gamate dot com
08-Jul-2003 09:49
When retrieving mod_gzip'ed content and using gzinflate() to decode the data, be sure to strip the first 10 chars from the retrieved content.

$dec = gzinflate(substr($enc,10));

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