JoeAtRevolutionUnltd
Programmer
This code works in PHP Version 5.2.3-1 but not 4.3.2. Can anyone point me in the right direction?
Thanks
Code:
if (file_exists('../podcast/download/'.$id.'.zip'))
unlink('../podcast/download/'.$id.'.zip');
$zip = new ZipArchive();
$filename = "../podcast/download/".$id.".zip";
if (($zip->open($filename, ZIPARCHIVE::CREATE)) !== TRUE) {
exit("cannot open <$filename>\n");
}
$zip->addFile("../podcast/".$name,$name);
$zip->close();
Thanks