Re: auto_prepend/append: does the PHP engine cache the file in memory?
| From: | derick@php.net | Date: | Sun, 29 Sep 2002 12:34:46 +0000 |
| Subject: | Re: auto_prepend/append: does the PHP engine cache the file in memory? | ||
| References: | 1 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-88737@lists.php.net to get a copy of this message | ||
On Sun, 29 Sep 2002, Jean-Christian Imbeault wrote:
> Sorry if this is the wrong place to ask ... but I searched the
> docs/archives and couldn't find a definite answer so I though I might
> ask the developers. I did see something about PWEE but it wasn't' clear
> enough.
>
> Does using the auto_prepend config option in the php.ini file cause PHP
> to cache the file in memory? Or will the file be read off disk for every
> script called ... (I am using PHP as an Apache module).
>
> Since PHP has to keep pre/appending the *same* file to *all* scripts it
> runs it would seem efficient to have the engine keep the file in memory ...
It would indeed more efficient, but PHP reparses and executes the
auto_prepend/auto_append files every time a script is started.
regards,
Derick
--
---------------------------------------------------------------------------
Derick Rethans http://derickrethans.nl/
JDI Media Solutions
--------------[ if you hold a unix shell to your ear, do you hear the c? ]-