Hi all,

I have a script for downloading a file once it's been purchased. Works fine with any browser except Safari, which only downloads the first tiny portion of the file and then, of course, the user can't uncompress the incomplete archive. Here is my code:

header('Content-type: '.$file_row['content_type']);
header('Content-Disposition: attachment; filename="'.$file_row["filename"].'"');
readfile('../../store/files/'.$file_row['filename']);


Assume that filename = 'myarchive.hqx' and content_type is 'application/hqx'

Can anyone suggest a way to make this work for Safari users too?

Thanks,
-Brian

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Reply via email to