Re: [PATCH] Repost - Adding Output Filters w/ Apache2 Handler SAPI

From: Date: Tue, 27 Apr 2004 15:52:16 +0000
Subject: Re: [PATCH] Repost - Adding Output Filters w/ Apache2 Handler SAPI
References: 1 2 3  Groups: php.internals 
Request: Send a blank email to internals+get-9593@lists.php.net to get a copy of this message
On Tue, 2004-04-27 at 08:48, Andi Gutmans wrote: > So what does the apache_add_output_filter("XSLT") do? It adds a filter to > the current request which runs after PHP? > Correct. First it tries to find an output filter registered as "XSLT". If there is not a filter that has registered the name "XSLT", it returns false. If there is a filter with that name, It adds it onto the Apache 2 Output filter chain and returns true. This is also how things like gzip compression happen with apache 2. For example, adding apache_add_output_filter("DEFLATE") would force mod_deflate to compress the output from PHP. (make sure this is done after adding XSLT, Ordering is important! The XSLT filter does not understand compressed content.) http://httpd.apache.org/docs-2.0/filter.html Provides some more information on filters in Apache 2. - Paul Querna

Attachment: [application/pgp-signature] This is a digitally signed message part signature.asc
« previous php.internals (#9593) next »