Re: Passing files to a browser
| From: | Christian Reiniger | Date: | Thu, 08 Feb 2001 19:18:56 +0000 |
| Subject: | Re: Passing files to a browser | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-38803@lists.php.net to get a copy of this message | ||
On Thursday 08 February 2001 18:43, Rob Root wrote:
> <?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>
That most likely means the fopen () failed.
--
Christian Reiniger
LGDC Webmaster (http://sunsite.dk/lgdc/)
This is JohnC IMHO, I compaired tri-word groupings here and in his plan
and got a good match.
- /. posting discussing the likelihood that an AC post that claimed to be
posted by John Carmack during his honeymoon (and having the login info at
home) was actually from him.