Is there some way to add files to zip with php?
Yes, but it's a bit technical. There's an article on it at zend's site:
http://www.zend.com/zend/spotlight/creating-zip-files1.php http://www.zend.com/zend/spotlight/creating-zip-files2.php http://www.zend.com/zend/spotlight/creating-zip-files3.php
Also, here's a paste from the zip classes annotations on the php website:
If you are looking for a way to create ZIP files dynamically in PHP, you should look at the wonderful zipfile class. It seems there is no official page for this class. You may get it by retrieving the zip.lib.php from the PhpMyAdmin 2.2.2: http://phpmyadmin.sourceforge.net/
Thanks 🙂
I can add files to zip, but how can I add the folders to zip? what is the folder data, that tells it is a folder?