By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
438,303 Members | 1,260 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 438,303 IT Pros & Developers. It's quick & easy.

Question about download script in PHP

P: n/a
I have a web site where we offer MP3 downloads (yes, they are
legal!). I've written a PHP script using readfile() (or fpassthru())
that sends the file using HTTP headers (via various header()
directives). The script launches the download fine and the download
proceeds normally. However, after 20MB - 35MB of the download
completes, the download suddenly completes even though the entire file
wasn't download. (The download does not fail.) The portion of the
file that was download is good/valid, but just incomplete. I have
observed this behavior in both MSIE and Firefox 2.0 and 3.0 with
multiple ISPs.

Do you have any suggestions about correcting this problem?

Thanks!
Aug 31 '08 #1
Share this Question
Share on Google+
1 Reply


P: n/a
Tim Jones wrote:
I have a web site where we offer MP3 downloads (yes, they are
legal!). I've written a PHP script using readfile() (or fpassthru())
that sends the file using HTTP headers (via various header()
directives). The script launches the download fine and the download
proceeds normally. However, after 20MB - 35MB of the download
completes, the download suddenly completes even though the entire file
wasn't download. (The download does not fail.) The portion of the
file that was download is good/valid, but just incomplete. I have
observed this behavior in both MSIE and Firefox 2.0 and 3.0 with
multiple ISPs.

Do you have any suggestions about correcting this problem?

Thanks!
Is your script timing out?

How long does it take to download that amount? What's your PHP timeout
value?

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
js*******@attglobal.net
==================

Aug 31 '08 #2

This discussion thread is closed

Replies have been disabled for this discussion.