Brian Dunning wrote:
I've been using the following code for some time to deliver electronic downloads of purchased software products -
header('Content-Type: '.$file_row['content_type']); header('Content-Disposition: filename="'.$file_row["filename"].'"'); $size = filesize('../../store/files/'.$file_row['filename']); header('Content-Length: '.$size); header('Content-Transfer-Encoding: base64'); readfile('../../store/files/'.$file_row['filename']);
looks good but don't know why you are using base64 it would increase the file size by upto 1/3 in some cases.
But once in a blue moon, someone complains that they didn't get their file and they always seem to be using some "download accelerator" software. Does anyone have any experience with these? Anything I can do to make the above code more robust? Note that it's been working great for a long time.
You don't need to support broken clients , but then by the same token you wouldn't need to support IE :-) you might want to share some infor about what these download software is.
One guess is that they are using resume which may not be fully supported on your system.
--
Raditha Dissanayake.
---------------------------------------------
http://www.radinks.com/print/upload.php
SFTP, FTP and HTTP File Upload solutions
-- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php