>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'
Not sure if this will solve your problem, but try tossing in a Content-Length header so the browser knows how long of a file to look for. I do all my development and testing with Safari, so I know for a fact that it can handle dynamically generated downloads of all the proper header fields are provided. --------------------------------------------------------------------- michal migurski- contact info and pgp key: sf/ca http://mike.teczno.com/contact.html -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php