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. -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php