This code works:
// create object
$zip = new ZipArchive();
// open archive
if ($zip->open('./download/zipfile.zip', ZIPARCHIVE::CREATE) !== TRUE) {
die ("Could not open archive");
}
but, I want to create the name of the zip file dynamically. The following code does not work ... doesn't give me an error, just doesn't create the zip file:
/
/ create object
$zip = new ZipArchive();
$thisTime = time();
// open archive
$thisZip = './download/'.$thisTime.'_download.zip';
$thisZip_b = $thisTime.'_download.zip';
if ($zip->open($thisZip, ZIPARCHIVE::CREATE) !== TRUE) {
die ("Could not open archive");
}
thanks in advance oh wise ones.
mrsburnside