先加載模塊extension=php_zlib.dll
PHP代碼:--------------------------------------------------------------------------------
<?php
$x="hello world";
$x=gzcompress($x) ; //壓縮
echo $x ;
echo "<br>";
echo gzuncompress($x); //解壓
?>
--------------------------------------------------------------------------------