Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在使用 PHP zipArchive 类解压缩文件并将它们存储在服务器上,但我有几个问题
extractTo 方法只返回真或假,我需要一个文件名和类型的列表,我可以
有任何想法吗?
you can extend the class, adding a logging function which then passes through the params to the extractTo method...
see: http://php.net/manual/en/keyword.extends.php
回答我自己的完整性问题,DirectoryIterator 是最好的方法。过程是: