【发布时间】:2020-10-09 19:45:30
【问题描述】:
我想读取带有 TXT 文件的 zip 文件,但我的 zip 文件存在于不同的 url,而不是本地机器上。 我尝试了两种方法都没有成功。
- $result = file_get_contents('zip://http://www.abcde.com/12345.zip#1234.txt'); 或
- $fp = fopen('zip://http://www.abcde.com/12345.zip#1234.txt', 'r'); 知道怎么做吗?
【问题讨论】:
标签: php zip fopen file-get-contents