chiedo scusa, ma ho un altro problema con questa classe :
una volta generato il file, mi dice "Catchable fatal error: Object of class PclZip could not be converted to string". il codice utilizzato è :
Codice PHP:
if (file_exists($filezip))
{
header('Content-Description: File Transfer');
header('Content-Type: application/zip');
header('Content-Disposition: attachment; filename='.basename($filezip));
header('Content-Transfer-Encoding: binary');
header('Expires: 0');
header('Cache-Control: must-revalidate, post-check=0, pre-check=0');
header('Pragma: public');
header('Content-Length:'.filesize($filezip));
ob_clean();
readfile($filezip);
unlink($filezip);
exit; }
e $filezip dichiarato come da sintassi per PclZip :
Codice PHP:
$filezip=new PclZip("./temp/".$trackid."-GTW-Tracklist.zip");
in sostanza : come faccio a fare l'outup dello zip? in modo che l'utente possa salvarlo sul propio computer.