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
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,
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])
3 matches
Mail list logo