★ wanayoo — archive 1999 http://www.devshed.com/Talk/Forums/Forum5/HTML/001504.htmlNouvelle recherche | Portail wanayoo
DevShed Menu
* DevShed Home
* Developer News
* DevShed Brain Dump




UBBFriend: Email This Page to Someone!
  DevShed Discussion Forums
  PHP
  application/PDF in Header not recognised by IE

Post New Topic  Post A Reply
profile | register | preferences | faq | search

next newest topic | next oldest topic
Author Topic:   application/PDF in Header not recognised by IE
Porcupine
Junior Member
posted June 15, 2000 03:31 PM     Click Here to See the Profile for Porcupine   Click Here to Email Porcupine     Edit/Delete Message Reply w/Quote
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.

damari
Junior Member
posted July 30, 2000 10:15 AM     Click Here to See the Profile for damari     Edit/Delete Message Reply w/Quote
I think you should send it as simple application/octet-stream. IE is AI I think =)

Regards

All times are MST (US)

next newest topic | next oldest topic

Administrative Options: Close Topic | Archive/Move | Delete Topic
Post New Topic  Post A Reply
Hop to:

Contact Us | DevShed.com

Copyright © 1997-2000 ngenuity. All rights reserved.

Powered by: Ultimate Bulletin Board, Version 5.41a
© Infopop Corporation (formerly Madrona Park, Inc.), 1998 - 1999.