Matthew Westcott wrote: > On 13 Mar 2005, at 14:20, John ORourke wrote: > >> Hi, >> >> I'm sure I should know this, but I'm trying to post-process the output >> of my >> handler with PHP. I'm still a bit green on Apache inner workings and >> just >> can't make it happen. > > > Just to be clear - your mod_perl handler is outputting PHP source which > you then hope to feed to PHP? If so, I don't think it's possible > directly - PHP can only be invoked as a response handler which reads the > script from the filesystem, and there can only be one response handler > in use.
if you're using apache 2.0 and recent versions of php (I'm looking at 5.0.3) it seems as though php can be invoked as an output filter as well. so, just from grepping sapi_apache2.c it looks like something akin to <Location /foo> SetHandler modperl PerlResponseHandler My::Foo SetOutputFilter PHP </Location> should do the trick, provided your mod_perl handler sets the content-type to 'application/x-httpd-php'. HTH --Geoff