如何压缩一段文本后存入mysql
先加载模块extension=php_zlib.dllPHP代码:--------------------------------------------------------------------------------
<?php
$x="hello world";
$x=gzcompress($x) ; //压缩
echo $x ;
echo "<br>";
echo gzuncompress($x); //解压
?>
--------------------------------------------------------------------------------
补充:Php教程,Php入门