note 46264 added to function.header

From: Date: Tue, 05 Oct 2004 06:50:26 +0000
Subject: note 46264 added to function.header
Groups: php.notes 
Request: Send a blank email to php-notes+get-78005@lists.php.net to get a copy of this message
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 ---- Manual Page -- http://www.php.net/manual/en/function.header.php Edit -- http://master.php.net/manage/user-notes.php?action=edit+46264 Delete -- http://master.php.net/manage/user-notes.php?action=delete+46264&report=yes Reject -- http://master.php.net/manage/user-notes.php?action=reject+46264&report=yes Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#78005) next »