Transfering PDF's without PDFLib
Posted: Wed Apr 02, 2003 4:49 pm
Does anyone know if this is possible?
I have a simple rountine setup, but the issue is that since the file extension to the php program is .php IE seems to be confused as to what to do. So it's solution is to just download the contents of the file and display it in a text editor. When, my hope is to have it realize this is a pdf file and use Acrobat.
Any ideas?
Here is the code:
Greatly appreciate the help!
I have a simple rountine setup, but the issue is that since the file extension to the php program is .php IE seems to be confused as to what to do. So it's solution is to just download the contents of the file and display it in a text editor. When, my hope is to have it realize this is a pdf file and use Acrobat.
Any ideas?
Here is the code:
Code: Select all
<?php
header("Content-Type: application/pdf");
$fp = fopen("tutorial.pdf","r");
fpassthru($fp);
fclose($fp);
?>