Hello Manuel, After reading your motivations, it seems to me that you need mod rewrite.
from: http://httpd.apache.org/docs/mod/mod_rewrite.html "Welcome to mod_rewrite, the Swiss Army Knife of URL manipulation! This module uses a rule-based rewriting engine (based on a regular-expression parser) to rewrite requested URLs on the fly. It supports an unlimited number of rules and an unlimited number of attached rule conditions for each rule to provide a really flexible and powerful URL manipulation mechanism. The URL manipulations can depend on various tests, for instance server variables, environment variables, HTTP headers, time stamps and even external database lookups in various formats can be used to achieve a really granular URL matching. This module operates on the full URLs (including the path-info part) both in per-server context (httpd.conf) and per-directory context (.htaccess) and can even generate query-string parts on result. The rewritten result can lead to internal sub-processing, external request redirection or even to an internal proxy throughput." Check it out. -- Best regards, Jason mailto:[EMAIL PROTECTED] Wednesday, October 6, 2004, 9:45:23 PM, you wrote: MVA> Hi internals: MVA> I made an addition to Apache 1.3.x SAPI; and I would like you to take a look MVA> at it, so you can evaluate if it has a chance to go official. MVA> Basically, the new feature lets Apache users to set a PHP Script Handler, MVA> this is, for each request made to the server the PHP Script Handler is MVA> execute, the only necessary configuration stuff looks like this: MVA> <VirtualHost *> MVA> ... classical stuff ... MVA> php_sethandler /path/to/handler.php MVA> SetHandler application/x-httpd-php MVA> </VirtualHost> MVA> I made patches for both PHP 4.3.8 and 4.3.9, they are in: MVA> http://www.chasqui.cu/staff/manu/2004/php-4.3.8-m3.patch.bz2 MVA> http://www.chasqui.cu/staff/manu/2004/php-4.3.9-m3.patch.bz2 MVA> (A list of few motivations for this add is in MVA> http://www.chasqui.cu/staff/manu/2004/apache.sapi.motivations.txt) MVA> I have tested both patches only on a Linux (LFS 5.1.1) with Apache 1.3.31. MVA> Some things I have not done yet: MVA> 1. Currently, I'm not making any checks for the PHP Script Handler file to MVA> exists. I will. MVA> 2. I have not modified the config.m4, I'm not familiar with M4, so I need to MVA> read some docs before I can do it. MVA> 3. I have not tested the DISABLE_SCRIPT_HANDLER branch yet, this is, compile MVA> with -DDISABLE_SCRIPT_HANDLER in order not to include the new feature. MVA> I would like to receive feedback on this. I'm very new to C coding, and I MVA> would like some of you to test it. Please don't let me holding on. MVA> Regards, MVA> Manu. -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php