note 46264 deleted from function.header by danbrown
| From: | danbrown@php.net | Date: | Sun, 07 Dec 2008 18:32:25 +0000 |
| Subject: | note 46264 deleted from function.header by danbrown | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-147834@lists.php.net to get a copy of this message | ||
Note Submitter: dobleerre at estudiowebs dot com
----
If you use the content type image/png instead of application/pdf when sending a PDF file on the
header you can override the Famous IExplorer Bug ;).
$len = filesize($filename);
header('Content-type: image/jpeg');
header('Content-Length: $len');
header('Content-Disposition: inline; filename="filename.pdf"');
readfile($filename);
IExplorer tries to open the picture but because of the file-extension .pdf , voila. The acrobat
reader plugin opens the file without even ask you for download.
I've read somewhere, "there is no turnarround on this bug, please install service pack
2".
There is always a turnarround :)
Have fun!!!
Raúl Raja Martinez. dobleerre@estudiowebs.com