When you add download files option to your pages using PHP. you need to use following code to fix IE related issues
$filename = "myfile" . ".doc";
header('Content-Type: application/msword');
header('Expires: ' . gmdate('D, d M Y H:i:s') . 'GMT');
header('Content-Disposition: attachment; filename="' . $filename . '"');
if (strpos($_SERVER['HTTP_USER_AGENT'], 'MSIE')) {
header('Cache-Control: must-revalidate, post-check=0, pre-check=0');
header('Pragma: public');
} else {
header('Pragma: no-cache');
}
Showing posts with label content-type. Show all posts
Showing posts with label content-type. Show all posts
Tuesday, August 10, 2010
Subscribe to:
Posts (Atom)