Is it possible to add new file to a Saved zip file without overwriting it?
Closed this issue · 1 comments
ThcDelux3 commented
- I want to create a zip file xml.zip
- Add a file 1.xml
- Save the zip
- after a given time want to add 2.xml to the existent zip
Is this possible with this lib?
jszobody commented
No that's not the purpose of this package at all. To interact with and modify an existing zip just use the built-in PHP methods:
https://www.php.net/manual/en/ziparchive.addfile.php
There are also many userland packages that provide a nicer way to manipulate Zip files, here's one I found: