Create ZIP-archive with ZipHelper
Example code for using the PHP-library ZipHelper (https://github.com/sklueh/PHPZipHelper)
<br/>
$oZipHelper = new ZipHelper("my_archiv.zip");
$oZipHelper->addSource('*.txt')
->addSource('*.php')
->addSource('../')
->addSource('/test.txt')
->addSource(array('/home/sklueh/write.sh',
'/home/sklueh/config.php'))
->addSource('/home/sklueh/my_directory')
->create();
Url: http://sklueh.de/2013/08/php-zip-archiv-erstellen/
Language: PHP | User: sklueh | Created: Sep 24, 2013