RE: [PHP] readfile without stating filelength

From: Date: Tue, 01 Oct 2002 03:25:22 +0000
Subject: RE: [PHP] readfile without stating filelength
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-118303@lists.php.net to get a copy of this message
> 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...

« previous php.general (#118303) next »