Yes, this is correct. If you look at sapi/apache2handler/sapi_apache2.c in PHP sources, you will find that PHP SAPI registers it's function php_handler() within apache. This function gets called every time PHP is requested by some client (with appropriate configuration, of course). I must admit that PHP-DEV (INTERNALS) seems more appropriate list for such question :) b. 2010/8/20 Stanisław Findeisen <stf@xxxxxxxxxxxxxxxxxxxxxxx> > Hi > > Could anyone please explain to me the basic architecture of PHP module > when running "in process" within Apache HTTP server? > I guess this is called "mod_php". > > As far as I understand the shared library (e.g., libphp5.so) is being > dynamically loaded by an Apache working process and then, whenever a > .php (or .php3, or...) file is requested the working process calls the > PHP interpreter. This call to the PHP interpreter is a function call and > there is no fork(2) nor execve(2) in play at all. > > Is this correct? > > STF > > http://eisenbits.homelinux.net/~stf/<http://eisenbits.homelinux.net/%7Estf/> > OpenPGP: DFD9 0146 3794 9CF6 17EA D63F DBF5 8AA8 3B31 FE8A > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > >