Documentation
add
usage
zipFile->add( File myfile )
paramètres
myfile : a file to put inside the zip file
This method adds a file inside the zip. Don't forget to call the compress method once all files are added.
exemples
include('../Kernel/common/file.class.php');
$zip = new ZipFile();
$picture = new File('/contact/1857/picture.jpg');
$cv = new File('/contact/1857/cv.doc');
$zip->add($picture);
$zip->add($cv);
$zip->compress();
$zip->forceDownload();