Create ZIP-archive with ZipHelper

Example code for using the PHP-library ZipHelper (https://github.com/sklueh/PHPZipHelper) <br/>
1
2
3
4
5
6
7
8
9
$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();
X

Url: http://sklueh.de/2013/08/php-zip-archiv-erstellen/

Language: PHP | User: sklueh | Created: Sep 24, 2013