Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <? $FileNameZip=$_SERVER['DOCUMENT_ROOT']."/doc/{$idDoc}_cor.zip";
- $zip = new ZipArchive;
- if ($zip->open($FileNameZip,ZipArchive::CREATE) === TRUE) {
- $zip->addFile($FileNameCFCor, iconv("UTF-8", "cp866",'Счёт-фактура-корректировочный '.$docDate.'.xls'));
- $zip->close();
- header('Content-Type: application/zip');
- header('Content-Disposition: attachment;filename="'.$idDoc.'-'.$docDate.'-корректировочный.zip"');
- header('Cache-Control: max-age=0');
- readfile($FileNameZip);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement