httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Eric Covener <cove...@gmail.com>
Subject Re: [users@httpd] PHP script as Apache filter or "callback"
Date Sat, 14 Mar 2009 16:42:13 GMT
On Sat, Mar 14, 2009 at 9:53 AM, Brian Mearns <mearns.b@gmail.com> wrote:
> On Sat, Mar 14, 2009 at 7:59 AM, André Warnier <aw@ice-sa.com> wrote:
>> Brian Mearns wrote:
>>>
>>> I've got a PHP script that I want to call for every request under a
>>> certain location. Specifically, I want to alter/set the response
>>> headers using this script. I know headers can be set in other ways,
>>> but in this case, the heders are set using some fairly complex logic
>>> which I don't think can be done in the conf file directly, plus the
>>> PHP script will have some other side effects on the server.
>>>
>> Maybe you'd have more chances here ? http://www.php.net/support.php
>
> I don't think this is really a PHP issue; I already have the script
> working, I just need to know how to apache to invoke it.

AFAICT it seems like php-as-a-filter is somewhat out of fashion, and
might require a rebuild of your PHP mod (if even still supported).

If you don't need high performance, mod_ext_filter might be a good stop-gap.

-- 
Eric Covener
covener@gmail.com

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message