Re: How PHP handles multiple inclusions of the same file?
| From: | John W. Holmes | Date: | Mon, 09 Aug 2004 19:14:57 +0000 |
| Subject: | Re: How PHP handles multiple inclusions of the same file? | ||
| References: | 1 2 3 4 5 6 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-193219@lists.php.net to get a copy of this message | ||
From: "Justin Patrin" <papercrane@gmail.com>
> > eval($script);
> > use_cached_code();
>
> Ick! eval() is evil!
You have benchmarks to back that up or experience?
I did a benchmark between using include(), eval(), smarty, pattemplate, and
a few others and include() and eval() are always the fastest.
Really depends upon what kind of features you need and what you consider
"evil". ;)
---John Holmes...