posted June 15, 2000 03:31 PM
Hello everyone or anyone,I'm wanting to send a PDF file to be displayed in the clients browser. However, I'm having trouble getting IE to realise it's receiving a PDF and to use its Adobe Acrobat plugin ActiveX thingey to display it and not go searching for a different application to run it. Works fine in Netscape. So any idea how to make the following header generating code cross browser compatable?
<?php
$pdf = $dbase->field("pdf");
Header ("Content-Type: application/pdf");
Header ("Content-Disposition: filename=".$pdf);
Header ("Content-Length: ".filesize($pdfpath));
readfile($pdfpath);
?>
Have a nice day.