7;re trying to close your filehandle twice... get rid of the
> fclose($fp) at the end and you should be fine.
>
> -jm
>
> -Original Message-
> From: Christian Reiniger [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, February 08, 2001 11:19 AM
> To: [EMAIL PROTECTED]
&
niger [mailto:[EMAIL PROTECTED]]
Sent: Thursday, February 08, 2001 11:19 AM
To: [EMAIL PROTECTED]
Subject: Re: [PHP] Passing files to a browser
On Thursday 08 February 2001 18:43, Rob Root wrote:
> $fp = fopen("test.txt", "r");
> header("content-typ
On Thursday 08 February 2001 18:43, Rob Root wrote:
> $fp = fopen("test.txt", "r");
> header("content-type: text/plain");
> fpassthru($fp);
> fclose($fp);
> ?>
>
> And got:
> Hello, World
>
> Warning: 1 is not a valid File-Handle resource in
> /home/robr/public_html/php/getpdf.
HI,
I am having problems passing files through to a browser. First I tried:
And got an Acrobat instance with no file displayed. Then I tried:
And got:
Hello, World
Warning: 1 is not a valid File-Handle resource in
/home/robr/public_html/php/getpdf.php on line 5
Help!!
rr
--
PHP Gene
4 matches
Mail list logo