Re: readfile without stating filelength
| From: | Justin French | Date: | Tue, 01 Oct 2002 03:44:20 +0000 |
| Subject: | Re: readfile without stating filelength | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-118309@lists.php.net to get a copy of this message | ||
1. I can't see a file length statement in the docs for readfile.
2. Can't you just use include('somefile.html'); or
require('somefile.html');
Just make sure any PHP code in the include file is wrapped in <?php ... ?>
tags.
HTH
Justin French
on 01/10/02 1:12 PM, Daniel Jung (jung@uib.no) wrote:
> Hi
>
> I want to read a pure html file into a php-generated html file.
> print(readfile("somefile.html"));
> How do I get rid of the filelength statement?
> Messes up the page.
>
> Thanks
> - Daniel
>
>