Christopher J. Bottaro wrote:
Opps, we just found mod_tidy.  :)

Christopher J. Bottaro wrote:

I'm wondering if there's a convenient way to globally add a final step for
apache w/php that will remove unnecessary whitespace from text/html before
it gets sent to the client. Some sort of global config like thing would be
ideal. For what it's worth we're using the smarty template engine too, but
I suppose I'd prefer a solution that doesn't depend on it. Maybe something
like another AddHandler?


Also consider mod_gzip (or mod_deflate), they will get you a LOT more space savings than mod_tidy will, and should still work with every browser made in the past decade or so ;)

From what I've seen, the CPU load induced by compression is quite small, at least on my test site that had about a quarter million pageviews (hence compressed documents) per day. Definitely worth the enormous bandwidth savings!

Regards, Adam Zey.

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to