[wp-testers] gzip_compression

Andrew Ozz admin at laptoptips.ca
Thu Apr 3 16:42:40 GMT 2008


Paolo Tresso / Pixline wrote:
> Almost any webserver now can deal with some kind of compression, even 
> shared hosting plans supports it quite everywhere, optional or built-in 
> (CPanel does it), and I think the 'software' option of WordPress was 
> quite unused.
> 
> If your server doesn't support it, you can check if you php ships with 
> output buffer, and either activate it via an .htaccess (if supported) or 
> make something like this in your index.php:
> 
> <?php
> /* Short and sweet */
> define('WP_USE_THEMES', true);
> ob_start(”ob_gzhandler”);
> require('./wp-blog-header.php');
> ob_end_flush();
> ?>

If you turn on compression in php other than "zlib.output_compression = 
On" in php.ini, don't forget to turn compression off in 
tiny_mce_config.php, as that will double-compress it.



More information about the wp-testers mailing list