您好,欢迎来到三六零分类信息网!老站,搜索引擎当天收录,欢迎发信息

PHP解压函数gzdecode和gzinflate使用方法

2025/10/27 16:32:14发布24次查看
php解压函数gzdecode和gzinflate使用方法技术 maybe yes 发表于2015-01-21 00:11
php 5.4 之后新增的 gzip 解压函数 gzdecode 使用方法,gzdecode ? decodes a gzip compressed string,解压一个使用 gzip 压缩的字符串,这是官网手册上面写到的。
目前很多的空间服务商的 php 版本都没有达到 5.4 ,这也导致使用此函数之后发生函数未定义错误,该如何解决这个问题呢?php 官方网站用户提交的日志中有人给出了很好的解决方案,使用 gzinflate 函数代替,代码参考如下:
gzinflate 函数的功能大致和 gzdecode 相似,在返回值的注解中官方给出了一句提示“the function will return an error if the uncompressed data is more than 32768 times the length of the compressed input data or more than the optional parameter length. ”。
阅(84)评(0)查看评论
该用户其它信息

VIP推荐

免费发布信息,免费发布B2B信息网站平台 - 三六零分类信息网 沪ICP备09012988号-2
企业名录 Product