Thread: PHP Gurus
View Single Post
Old 07-16-2006, 05:04 PM  
duckduckgoose
Registered User
 
Industry Role:
Join Date: Mar 2006
Location: North Pole
Posts: 82
If you replace all of the header() lines you used with the following ones, it works correctly in IE6 and Firefox.

header('Cache-Control: ');
header('Pragma: ');
header("Content-Type: application/force-download");
header("Content-length: " . (string)(filesize($path)));
header("Content-Disposition: attachment; filename=" . $path);


Test it yourself and see how it works out for you.
__________________
rRhino.com ...social networking for book fans...

Last edited by duckduckgoose; 07-16-2006 at 05:05 PM..
duckduckgoose is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote