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

Does anyone know of a way to do this? If not, can anyone point me to a
good tutorial for writing apache filters?

Sure.
http://perl.apache.org/docs/2.0/user/handlers/filters.html

;-)

(Note: that's not as silly as it sounds. As language, perl and PHP are reasonably close. And since mod_perl is very closely integrated into Apache (much more than mod_php), what you will read there will give you a very good idea of how filters work in Apache)


---------------------------------------------------------------------
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-unsubscr...@httpd.apache.org
  "   from the digest: users-digest-unsubscr...@httpd.apache.org
For additional commands, e-mail: users-h...@httpd.apache.org

Reply via email to