可以列出 zip/rar 文件内容的 PHP 库 [英] PHP library that can list contents of zip / rar files

查看:26
本文介绍了可以列出 zip/rar 文件内容的 PHP 库的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

注意:我需要一个库,而不是指向有关我的主机没有或不想安装的扩展的文档的链接.

Note: I NEED A LIBRARY not links to documentation about extensions my host doesn't have or want installed.

主题说明了一切.

我暂时不需要解压任何文件(虽然这可能是我的网络应用程序的一个很好的补充)我只需要列出 rar 和 zip 档案的内容.

I don't need to extract any files for the moment (although that might be a nice addition to my web app later) I just need to list the contents of rar and zip archives.

推荐答案

老实说,我不认为你会找到一个.如果我理解正确的话,您要的是一个包含 rar 扩展名(为文件系统和压缩文件提供 php 访问权限和可用性:rar)本身的库.我真的不认为任何人会遇到重建/移植/移动/提取/等 rar 扩展程序更容易安装的麻烦.如果我是你,我会联系主机,看看他们是否会安装它和/或迁移到新主机.

I honestly don't think you'll find one. What you're asking for is a library that includes the rar extension (giving php access and usability to the filesystem and compressed files: rar) itself if I'm understanding correctly. I really don't think anyone would go through the trouble of rebuilding/porting/moving/extracting/etc the rar extension when it's easier to install it. If I were you I'd contact the host to see if they'll install it and/or migrate to a new host.

这篇关于可以列出 zip/rar 文件内容的 PHP 库的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆