Extract CAB files with PHP

故事扮演 提交于 2019-12-01 23:19:21

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

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.

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.
标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!