[thelist] A tip with PHP
Patti Ames
patti_ames at yahoo.com
Tue Jul 17 12:42:35 CDT 2001
--- Seb <seb at members.evolt.org> wrote:
> > >
> > > > $page = join ('', file ($fichier));
> > > > echo $page;
>
> You're actually wasting resources by indirectly assigning the
> contents of a
> file into another variable.
>
> eg:
>
> <? $fichier = $whatever;
> include($fichier); ?>
>
> When you include a file, it only evaluates what's inside PHP
> delimiter tags,
> so if you leave them out it treats your included file as HTML to be
> output.
>
Since you're using HTML files, why not use readfile? What
advantage does include have over readfile? It seems like
include would have more overhead.
__________________________________________________
Do You Yahoo!?
Get personalized email addresses from Yahoo! Mail
http://personal.mail.yahoo.com/
More information about the thelist
mailing list