[thelist] PHP, PDF and IE7 [Solved]

Hershel Robinson hershel at galleryrobinson.com
Tue Mar 13 04:44:48 CDT 2007

> Roughly following the thread, and tried the original URL () and viewed 
> the headers.  Why is this header being sent?
> Content-Type: Mishpacha PDF Article application/pdf
> Shouldn't that be Content-type: application/pdf ? 

Seems not to make a difference. My IE7 machine is back now and seems to 
not mind that Content-Type. See below

> For IE 7, you'll want 
> to give the filename in the header, as Jason suggested earlier.  I saved 
> your pdf file, and made this quickie to do something like you're doing:
> <?php  /*** pftest.php ***/
> $pdfoutput = file_get_contents('viewpdfTest.pdf');
> header('Content-Type: application/pdf');
> header('Content-Disposition: inline; filename=file.pdf');
> echo $pdfoutput;

The Type and Disposition I had before. The solution seems to be to 
(also) use echo instead of fpassthru. This was something I considered 
myself just before your post but didn't I have time to test until today.



now works for me in IE7.


Web Site Construction by Gallery Robinson

More information about the thelist mailing list