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');
}
Subscribe to:
Post Comments (Atom)
1 comment:
Read this article
Read this article
Read this article
Read this article
Read this article
Read this article
Read this article
Read this article
Read this article
Read this article
Post a Comment