Re: Small addition to Apache 1.3.x SAPI
| From: | Manuel V�zquez Acosta | Date: | Fri, 08 Oct 2004 15:18:50 +0000 |
| Subject: | Re: Small addition to Apache 1.3.x SAPI | ||
| References: | 1 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-13232@lists.php.net to get a copy of this message | ||
I would like to know if some guy of the PHP Group has taken a look at this
thread.
Although it has been stated that one of the main motivations its fulfilled
with mod_rewrite; it's not clear that mod_rewrite would help with the second
motivation; and I think this tiny patch is slightly faster than mod_rewrite
for per directory. So, any chances to go ahead?
Regards,
Manuel.
"Manuel VáZquez Acosta" <manu@chasqui.cu> wrote in message
news:20041007014658.17439.qmail@pb1.pair.com...
> Hi internals:
>
> I made an addition to Apache 1.3.x SAPI; and I would like you to take a
look
> at it, so you can evaluate if it has a chance to go official.
>
> Basically, the new feature lets Apache users to set a PHP Script Handler,
> this is, for each request made to the server the PHP Script Handler is
> execute, the only necessary configuration stuff looks like this:
>
> <VirtualHost *>
> ... classical stuff ...
> php_sethandler /path/to/handler.php
> SetHandler application/x-httpd-php
> </VirtualHost>
>
> I made patches for both PHP 4.3.8 and 4.3.9, they are in:
> http://www.chasqui.cu/staff/manu/2004/php-4.3.8-m3.patch.bz2
> http://www.chasqui.cu/staff/manu/2004/php-4.3.9-m3.patch.bz2
>
> (A list of few motivations for this add is in
>
> http://www.chasqui.cu/staff/manu/2004/apache.sapi.motivations.txt)
>
>
> I have tested both patches only on a Linux (LFS 5.1.1) with Apache 1.3.31.
>
> Some things I have not done yet:
>
> 1. Currently, I'm not making any checks for the PHP Script Handler file to
> exists. I will.
>
> 2. I have not modified the config.m4, I'm not familiar with M4, so I need
to
> read some docs before I can do it.
>
> 3. I have not tested the DISABLE_SCRIPT_HANDLER branch yet, this is,
compile
> with -DDISABLE_SCRIPT_HANDLER in order not to include the new feature.
>
>
> I would like to receive feedback on this. I'm very new to C coding, and I
> would like some of you to test it. Please don't let me holding on.
>
>
> Regards,
> Manu.