On 18 April 2010 21:43, Micky Hulse <mickyhulse.lists@xxxxxxxxx> wrote: > On Sun, Apr 18, 2010 at 10:23 AM, Michiel Sikma <michiel@xxxxxxxxxxxxxx> > wrote: > > I would prefer to use include() since it runs the code in the same > context, > > ...<snip>... > > with your data rather than printing it right away. > > Thanks for the reply Michiel, I really appreciate it. :) > > For some benchmarks on the different types of inclusion > functions/language constructs, this page has some good info: > > <http://www.raditha.com/wiki/Readfile_vs_include> > > The results are interesting. > > One thing to keep in mind is that this one doesn't take eval() vs regular include execution time into account, in case you were still considering using it. According to this page, it's many times slower: http://blog.joshuaeichorn.com/archives/2005/08/01/using-eval-in-php/ Michiel