Any of these will work:

echo implode("\n", file($filename));

fpassthru(fopen($filename, "r"));

readfile($filename);

You probably want readfile().
http://www.php.net/manual/en/function.readfile.php

--
 - Daniel Grace <http://dewin.oldbattery.com/>

  "Space may be the final frontier but its made in a Hollywood basement."
    - Red Hot Chili Peppers - Californication
""Karl J. Stubsjoen"" <[EMAIL PROTECTED]> wrote in message
005b01c086fa$ec53ba30$0afc020a@kstubsjoen">news:005b01c086fa$ec53ba30$0afc020a@kstubsjoen...
> Hello,
>
> I want to *read* a file into a page and not process any PHP.  I'm just
> reading an HTML file.  I though it was simple, I thought I had it figured
> out, but now when I try, I get the following error:
>
> Fatal error: Call to unsupported or undefined function read() in
> /var/www/wherever.com/betastore/iscookies.php on line 41
>
> Here is the code (line 41 is superceded by a +):
>
> 37: # display no cookies message
> 38: function NoCookies() {
> 39: global $DOCUMENT_ROOT;
> 40: $LocalScript = $DOCUMENT_ROOT . "/betastore";
> 41:  read ($LocalScript . "/thispage.html");
> 42: }
>
> Thanks for any help.
>
>
>
> --
> 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]
>



-- 
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]

Reply via email to