Re: [PHP4BETA] PHP and Apache
| From: | Stig S. Bakken | Date: | Thu, 24 Feb 2000 18:31:54 +0000 |
| Subject: | Re: [PHP4BETA] PHP and Apache | ||
| References: | 1 | Groups: | php.version4 |
| Request: | Send a blank email to php-version4+get-10889@lists.php.net to get a copy of this message | ||
PHP4Beta List wrote:
>
> We are tring to advocate the use of PHP in some of our projects at work, and had a few
> questions. When a php file is loaded by Apache is it cached for subsequent accesses or is it
> destroyed immediately after its first use. I'm asking because we are starting to put together
> a whole collection of classes for a project we're working on, and do want them to have to all
> be loaded into memory each time a page is hit. I believe JAVA servelets are loaded and compiled
> once by each server thread, and we wondered if PHP did the same. Any answers or other suggestions
> would be welcomed! Thanks!
PHP will parse and compile everything for each request. There will be a
(commercial) add-on for keeping them in memory.
- Stig