Re: [PHP4BETA] Re: [PHP3] Re: [PHP4BETA] Writing Apache modules in PHP

From: Date: Mon, 13 Mar 2000 00:22:18 +0000
Subject: Re: [PHP4BETA] Re: [PHP3] Re: [PHP4BETA] Writing Apache modules in PHP
References: 1 2 3 4  Groups: php.version4 
Request: Send a blank email to php-version4+get-11999@lists.php.net to get a copy of this message
Evan Klinger (evan715@sirius.com) wrote: > I understand that apache modules can be written in perl. What I want to > know is whether these modules are processed at Apache start-up (my > guess) or some other way? You declare (in the <Perl> section of httpd.conf) which handlers you want to register with mod_perl. There are specialized handlers like PerlRewriteHandler MyPerlModule (which are expected to have a ::handler method) or the generic PerlHandler HTML::Embperl (which is what one uses to use the PHP-like Embperl) > Also, how does Perl deal with the handler situation? Do you provide your > own functions and then 'register' them with a Perl function which tells > apache to call those functions for certain actions? Once you've told it which handler to call (e.g. HTML::Embperl::handler), it's standard Apache module stuff: your handler function says OK, DECLINE, or it returns an error. Sure, it's very generic, but I'm not convinced it's worthwhile. PHP is much better when it's being a focused web production tool, which it is very good at indeed. There's other functionality, besides being a whole-hawg Apache module authoring tool, that is far more valuable (and which I wish I had more time to write myself). -- ,,, (. .) +--ooO-(_)-Ooo------------ --- -- - - - - | Stephen van Egmond http://bang.dhs.org/

« previous php.version4 (#11999) next »