Re: include vs. fread

From: Date: Thu, 12 Oct 2000 12:33:48 +0000
Subject: Re: include vs. fread
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-19796@lists.php.net to get a copy of this message
Hi Geoffrey! On Tue, 10 Oct 2000, Geoffrey Makstutis wrote: > Is there a better way to include the contents of file for inclusion within > another file? For example, with templates is it better to create files that > are of the form: > > echo ".... a whole bunch of stuff here..."; > > and then call an include() within your script. require() does not parse it first, so it's a bit faster. > Or, is it better to do an fread() to include the contents of the file? don't think it makes a difference to require in such cases. -- teodor

« previous php.general (#19796) next »