When does the php interpreter loads the php file?

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Kim Gijung

    When does the php interpreter loads the php file?

    Hi All,

    I'm wondering three facts about php, apache and apache module.

    1.How can i differentiate the php intepreter if it's running as a
    apache module or as cgi?

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

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

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

    Thak you
  • Alvaro G Vicario

    #2
    Re: When does the php interpreter loads the php file?

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

    If I recall correctly phpinfo() calls it "Server API".
    [color=blue]
    > 2.When does the php interpretor loads the php file to main memory?[/color]

    In a web page, when the file is requested. In a command line script, when
    the file is executed.
    [color=blue]
    > 3.and till when it keeps the php file on memory?[/color]

    Until the execution ends.
    [color=blue]
    > - in my experience only after installing Zend it caches the php
    > file.[/color]

    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
    --

    Comment

    Working...