Re: [PHP] readfile without stating filelength

2002-09-30 Thread Justin French

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 
tags.

HTH

Justin French


on 01/10/02 1:12 PM, Daniel Jung ([EMAIL PROTECTED]) 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 
> 
> 


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




RE: [PHP] readfile without stating filelength

2002-09-30 Thread John W. Holmes

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

Your error is using the print(). You just want readfile("file") without
the print. Readfile() returns the number of bytes read, which you are in
turn printing out... so if you don't want it, stop doing it. :)

You could use include(), too...

---John Holmes...



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP] readfile without stating filelength

2002-09-30 Thread Daniel Jung

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 



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php