Beheerder |
|
$zip = new ZipArchive ( );
if ($zip->open ( 'naam', ZIPARCHIVE::CREATE ) !== TRUE) {
return false;
}
$zip->addFile ( 'images/test.jpg', 'test.jpg' );
$zip->close ();
$zip = new ZipArchive ( ); if ($zip->open ( 'naam', ZIPARCHIVE::CREATE ) !== TRUE) { return false; } $zip->addFile ( 'images/test.jpg', 'test.jpg' ); $zip->close ();
|