diff options
author | prashantsinalkar | 2017-05-08 11:40:41 +0530 |
---|---|---|
committer | prashantsinalkar | 2017-05-08 11:40:41 +0530 |
commit | a69972b076fdafbaf276f4576c8a7cd52737e68d (patch) | |
tree | ac4f220d19e95d4568968af0a89ade551c3ff0ec /full_download.inc | |
parent | 634f9d38413ea43b89b37a6e4641070a851120e6 (diff) | |
download | scilab_textbook_companion-a69972b076fdafbaf276f4576c8a7cd52737e68d.tar.gz scilab_textbook_companion-a69972b076fdafbaf276f4576c8a7cd52737e68d.tar.bz2 scilab_textbook_companion-a69972b076fdafbaf276f4576c8a7cd52737e68d.zip |
download header changed
Diffstat (limited to 'full_download.inc')
-rwxr-xr-x | full_download.inc | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/full_download.inc b/full_download.inc index 0895bd2..41d8eae 100755 --- a/full_download.inc +++ b/full_download.inc @@ -200,6 +200,7 @@ function textbook_companion_download_full_book() } //$example_row = $example_q->fetchObject() } //$chapter_row = $chapter_q->fetchObject() $zip_file_count = $zip->numFiles; + //var_dump($zip->numFiles);die; $zip->close(); if ($zip_file_count > 0) { @@ -207,12 +208,12 @@ function textbook_companion_download_full_book() header('Content-Type: application/zip'); header('Content-disposition: attachment; filename="' . $book_data->book . '.zip"'); header('Content-Length: ' . filesize($zip_filename)); - //header("Content-Transfer-Encoding: binary"); - //header('Expires: 0'); - //header('Pragma: no-cache'); - //ob_end_flush(); + header('Content-Transfer-Encoding: binary'); + header('Expires: 0'); + header('Pragma: no-cache'); + ob_end_flush(); ob_end_clean(); - //flush(); + flush(); readfile($zip_filename); unlink($zip_filename); } //$zip_file_count > 0 |