Correct headers for I.E. to open PDF?

From: Date: Fri, 03 Sep 2004 19:05:33 +0000
Subject: Correct headers for I.E. to open PDF?
Groups: php.general 
Request: Send a blank email to php-general+get-195768@lists.php.net to get a copy of this message
I have searched the net, and found tons of developers with different solutions to this problem, none of which I have found to work. What should the headers be for a client to download a PDF document and have it open using adobe i.e. pluggin?? Here is code I am using, it works on some versions of I.E., but not all: $pdfdoc = $__BASE_PDF_BUILD_DIRECTORY.$_GET['FID']; $filesize = filesize($pdfdoc); header("Pragma: "); header("Expires: 0"); header("Cache-Control: must-revalidate, post-check=0,pre-check=0"); header("Content-type: application/pdf"); header("Content-Length: ".$filesize); header("Content-Disposition: inline; filename=FILE.pdf"); header("Content-Transfer-Encoding: binary"); header("Accept-Ranges: bytes"); readfile($pdfdoc); exit(); Why isn't it working? Thanks, -Paul

« previous php.general (#195768) next »