View Single Post

  #2 (permalink)  
Old 10-20-2004
Alvaro G Vicario
 
Posts: n/a
Default Re: When does the php interpreter loads the php file?

*** Kim Gijung wrote/escribió (20 Oct 2004 00:03:35 -0700):
> 1.How can i differentiate the php intepreter if it's running as a
> apache module or as cgi?


If I recall correctly phpinfo() calls it "Server API".

> 2.When does the php interpretor loads the php file to main memory?


In a web page, when the file is requested. In a command line script, when
the file is executed.

> 3.and till when it keeps the php file on memory?


Until the execution ends.

> - in my experience only after installing Zend it caches the php
> file.


Right, if you aren't using a cache the file is not cached.


--
-- Álvaro G. Vicario - Burgos, Spain
-- Thank you for not e-mailing me your questions
--
Reply With Quote