使用 PHP 提取 CAB 文件

发布于 2024-08-07 09:09:51 字数 85 浏览 4 评论 0原文

在 IIS6 上运行 PHP,如何打开并提取 CAB 文件的内容?有什么方法可以在不使用 exec 的情况下执行此操作吗?我没有权限用 exec 运行东西。

Running PHP on IIS6, how can I open and extract the contents of a CAB-file? Is there any way of doing this witout using exec? I don't have permission to run stuff with exec.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

不及他 2024-08-14 09:09:51

如果没有像 cabextract 这样的外部工具,这将无法工作。 PHP 没有这方面的函数。

Without external tools like cabextract this won't work. PHP has no functions for this.

涫野音 2024-08-14 09:09:51

不幸的是,这条评论太长了。很久以前我写了一个基于 PHP 的cab-archive reader。看到人们仍然感兴趣,我将源代码放在网上,但需要注意的是,该项目并不漂亮,而且相当有限(没有提取压缩/存储的文件),并且不是由熟练的程序员编写的。它可能只能作为一个起点。

This is unfortunately too long as a comment. I wrote a PHP based cab-archive reader a long time ago. Seeing how there is still interest, I put the sources online with the caveat that the project is not pretty, rather limited (no extraction of compressed/stored files) and was not written by a proficient programmer. It may only serve as a starting point.

梦情居士 2024-08-14 09:09:51

我编写了一个用于提取 CAB 档案的库: https://github.com/wapmorgan/CabArchive

  • 所有版本都支持提取未压缩文件。
  • 使用MSZip 压缩提取压缩档案仅适用于最新的 PHP 版本(7.0.22+、7.1.8+、7.2.0)。
  • 提取
    不支持使用LZX 压缩的压缩档案。

I've written a library for extraction of CAB archives: https://github.com/wapmorgan/CabArchive

  • Extraction of uncompressed files is supported on all versions.
  • Extraction of compressed archives with MSZip compression works only on latest PHP versions (7.0.22+, 7.1.8+, 7.2.0).
  • Extraction of
    compressed archives with LZX compression is not supported.
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文