i created with php zip ( http://php.net/manual/de/book.zip.php ) a zip file
now i have to send it to the browser / force a download for it.
Set the content-type, content-length and content-disposition headers, then output the file.
header('Content-Type: application/zip');
header('Content-Disposition: attachment; filename="'.$filename.'"');
header('Content-Length: '.filesize($filepath) );
readfile($filepath);
Setting Content-Disposition: attachment will suggest the browser to download the file instead of displaying it directly.