[phpa] Re: eval() and system() bugs

  • From: "Nick Lindridge" <nick@xxxxxxxxxxxxxxxxxxxxx>
  • To: <zerocool@xxxxxxxxxxxxx>
  • Date: Thu, 16 May 2002 10:07:53 -0000 ()

> Hi,
>
> Just two small question:
>
> Is there any acceleration by phpa to eval()'d code from a datafile or
> database?

no.

>
> Is it better to keep things in files and include them, regarding
> acceleration?

certainly. eval'd code is really for typically smaller amounts of code,
and where not even the code is known when you write the scripts. but -
if your script is generating code very time, storing that in a file
including it is going to be slower, particularly because the
optimisation and caching cost is relatively high. But, if you generate
the code and it's good for the next 20 page accesses, then probably
better to generate and cache it rather than doing an eval every time if
the code is large.




------------------------------------------------------------------------
  www.php-accelerator.co.uk           Home of the free PHP Accelerator

To post, send email to phpa@xxxxxxxxxxxxx
To unsubscribe, email phpa-request@xxxxxxxxxxxxx with subject unsubscribe


Other related posts: