diff options
author | root | 2014-04-10 10:33:04 +0530 |
---|---|---|
committer | root | 2014-04-10 10:33:04 +0530 |
commit | 9f1f14fbf1c50179ff0f4f2aa0975616ed4044e6 (patch) | |
tree | 95b90612cda885fe86061cfe77e0ca191e995f2d /full_download.inc | |
parent | a37654c53a9c2ccf4980f65f9398c23688f089bd (diff) | |
download | scilab_textbook_companion-9f1f14fbf1c50179ff0f4f2aa0975616ed4044e6.tar.gz scilab_textbook_companion-9f1f14fbf1c50179ff0f4f2aa0975616ed4044e6.tar.bz2 scilab_textbook_companion-9f1f14fbf1c50179ff0f4f2aa0975616ed4044e6.zip |
major changes done, updating to github
Diffstat (limited to 'full_download.inc')
-rwxr-xr-x | full_download.inc | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/full_download.inc b/full_download.inc index 8c06c24..a269bd8 100755 --- a/full_download.inc +++ b/full_download.inc @@ -69,6 +69,13 @@ function textbook_companion_download_full_chapter() header('Content-Type: application/zip'); header('Content-disposition: attachment; filename="CH' . $chapter_data->number . '.zip"'); header('Content-Length: ' . filesize($zip_filename)); + header("Content-Transfer-Encoding: binary"); + header('Expires: 0'); + header('Pragma: no-cache'); + ob_end_flush(); + ob_clean(); + flush(); + readfile($zip_filename); unlink($zip_filename); } else { @@ -149,6 +156,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(); + ob_clean(); + //flush(); readfile($zip_filename); unlink($zip_filename); } else { |