httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Dietz, Phil E." <PEDi...@West.com>
Subject RE: Module initialization and per-directory config directives
Date Fri, 14 May 1999 18:43:10 GMT
It's never torture...since now my testing and staging areas get these nice
footers displaying their CVS distribution info automatically.

I can do the same thing with mod_include or mod_php, but then all documents
must conform to one or the other to take advantage.

Since my footers are stuck on by ap_finalize_request_protocol(), all
possible file types
(cgi, php, mod_include, etc.) get them attached on.

Formatting the HTML document is easy since all browsers I've tried support
multiple HTML docs in a transmission.  Simply make your footer a complete
html document....

<html><head><title></title></head><body>cgi output</body></html>
<html><head><title></title></head><body>footer</body></html>

But seriously the more hooks Apache can get in, the easier people can
integrate Apache into things like web distribution systems etc.

	-----Original Message-----
	From:	Dean Gaudet [SMTP:dgaudet@arctic.org]
	Sent:	Friday, May 14, 1999 1:15 PM
	To:	'new-httpd@apache.org'
	Subject:	RE: Module initialization and per-directory config
directives



	On Fri, 14 May 1999, Dietz, Phil E. wrote:

	> I also recommend a post_sent hook, so people can write modules
that append
	> to a sent web document like footers, geocities popups, etc.

	Ha.

	> Right now I have to hack in an ap_rputs() inside of
	> ap_finalize_request_protocol().

	Emphasis on hack. 

	It's impossible for you to form a properly formatted HTML document
in
	general, unless you control all the input documents... in which case
you
	can solve your problem just as easily using mod_include or
mod_php3... and
	I don't see why Apache should need to provide this mechanism.

	In any event, if you want to perform this kind of torture, you can
wait
	for filters. 

	Dean
	

Mime
View raw message