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,

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 ?php ... ? tags. HTH Justin French on 01/10/02 1:12 PM, Daniel Jung ([EMAIL PROTECTED])