Perhaps you might enlighten us on how you've got it set up ...
Perhaps you might enlighten us on how you've got it set up ...
.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole
Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.
However, I am not redirecting (false) and I am not compressing (false)
Well, I turned off Gzip and redirect, turned on streaming and the problem still exists.....ugh
Here is what my isp (ipower.com) sent back after troubleshooting this issue.
To overcome this, please use header() function to redirect the request to the browser, to download the file. Currently, you are getting an pop-up download box which shows the progress bar. This is of Windows. You can have a progress bar built incorporated in the site itself, to show the progress. This way you can stop the download from timing out as this script will be refreshing the same. Please take the help of your web master.
If anyone knows what he is talking about, I would be indebted forever.
Michael
Here is the code from download.php
// Now send the file with even more header() magic;-)
// Date in the past
header("Expires: Mon, 26 Nov 1962 00:00:00 GMT");
// always modified
header("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT");
// HTTP/1.1
header("Cache-Control: private, no-store, must-revalidate, max-age=0");
header("Cache-Control: post-check=0, pre-check=0", false); // false=don't overwrite but add header
// HTTP/1.0
// Content stuff
header("Content-Length: " . filesize(DIR_FS_DOWNLOAD . $downloads['orders_products_filename']));
header("Content-Type: application/octet-stream");
header("Content-Disposition: attachment; filename=\"" . $downloads['orders_products_filename'] . "\"");
if (DOWNLOAD_BY_REDIRECT == 'true') {
// This will work only on Unix/Linux hosts
tep_unlink_temp_dir(DIR_FS_DOWNLOAD_PUBLIC);
$tempdir = tep_random_name();
umask(0000);
mkdir(DIR_FS_DOWNLOAD_PUBLIC . $tempdir, 0777);
symlink(DIR_FS_DOWNLOAD . $downloads['orders_products_filename'], DIR_FS_DOWNLOAD_PUBLIC . $tempdir . '/' . $downloads['orders_products_filename']);
if (file_exists(DIR_FS_DOWNLOAD_PUBLIC . $tempdir . '/' . $downloads['orders_products_filename'])) {
tep_redirect(tep_href_link(DIR_WS_DOWNLOAD_PUBLIC . $tempdir . '/' . $downloads['orders_products_filename']));
}
}
// Fallback to readfile() delivery method. This will work on all systems, but will need considerable resources
readfile(DIR_FS_DOWNLOAD . $downloads['orders_products_filename']);
?>
Zen Cart already uses header() commands to do the redirected downloads.
.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole
Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.
Um ... you have osCommerce code in there instead of Zen Cart code.
Zen Cart does not have or use any "tep_xxxxxx()" functions.
Perhaps you've installed incompatible addons?
Or attempted to hack code from different software?
Please contact whoever made the customizations on/for your site for support.
.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole
Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.