HI,
I am having problems passing files through to a browser. First I tried:
<?php
$fp = fopen("test.pdf", "r");
header("content-type: application/pdf");
fpassthru($fp);
fclose($fp);
?>
And got an Acrobat instance with no file displayed. Then I tried:
<?php
$fp = fopen("test.txt", "r");
header("content-type: text/plain");
fpassthru($fp);
fclose($fp);
?>
And got:
Hello, World
<br>
<b>Warning</b>: 1 is not a valid File-Handle resource in
<b>/home/robr/public_html/php/getpdf.php</b> on line <b>5</b><br>
Help!!
rr
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]