PHP Bz2 扩展问题
当我使用 bzopen
时,我需要 bzwrite()< /code> 已经被
bzcompress()
字符串压缩,还是在写入时自动压缩?
When I am using bzopen
, do I need to bzwrite()
already compressed by a bzcompress()
string or is it being compressed automatically while writing?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
![扫码二维码加入Web技术交流群](/public/img/jiaqun_03.jpg)
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
根据
bzwrite
(引用):我想说之前不需要自己用
bzcompress
压缩数据使用bzwrite。另外,执行这部分代码将创建一个内容如下所示的文件:
看起来不像“
未压缩数据
”——而是看起来像一些 bzip2 压缩数据;-)Judging by Example #1 on the manual page of
bzwrite
(quoting) :I would say there is no need to compress data yourself with
bzcompress
before usingbzwrite
.Also, executing this portion of code will create a file with content that looks like this :
Doesn't look like "
uncompressed data
" -- and looks like some bzip2-compressed data ;-)