Hello All,
I currently have a PerlHandler that simply appends some data to all
outgoing text/html files. In my .htaccess file:
SetHandler perl-script
PerlHandler AddHtml
Then in the AddHtml.pm file:
.......
## Print the page asis
my $rqh = Apache::File->new($r->filename)
|| return DECLINED;
## Print the content
$r->send_http_header();
$r->send_fd($rqh);
## Append the secret message
$r->print("\n\n Hi!");
........
It works well for the most part, but there are a few quirks: 1) text/html
output from cgi scripts isn't modified and 2) all server-parsed .shtml SSI
directives are ignored.
I just bought the "Writing Apache Modules" book, but haven't been able to
find a quick fix to my problem (I guess I /am/ lazy). Is there a Handler
stage in which I can gain access to all parsed/compiled html right before it
gets spit out to the client?
Thanks,
Jim Sproull
[EMAIL PROTECTED]