I am a beginner, so I will try my best to explain the problem that I am experiencing. I apologize in advance if there is something I forgot or is unclear.
I maintain the 81MB zip file outside of my root directory for people who have verified in advance. I get messages about damaged downloads or inability to complete the download. I checked this on my machine if I simulate a slow connection.
I work on shared hosting Apache-Coyote / 1.1.
I get a network timeout error. I think my host can kill downloads if they take too much time, but they have not confirmed anyway.
I thought that maybe I'm working with a time limit or time limit, so my host installed the apache XSendFile module. My headers in the file that handles the download after verification are set as follows:
<?php set_time_limit(0); $file = '/absolute/path/to/myzip/myzip.zip'; header("X-Sendfile: $file"); header("Content-type: application/zip"); header('Content-Disposition: attachment; filename="' . basename($file) . '"');
Any help or suggestions would be appreciated. Thanks!
source share