[wp-testers] gzip_compression
Paolo Tresso / Pixline
supporto at pixline.net
Thu Apr 3 15:02:19 GMT 2008
Il giorno 03/apr/08, alle ore 16:10, Frank Bueltge ha scritto:
> Why was deprecated the function gzip_compression() ?
> Give it information ?
As someone said, because now WordPress leaves it to the server.
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();
?>
Here's something to get started with:
http://elliottback.com/wp/archives/2006/01/12/http-gzip-compression-in-php/
but I'd rather check for the webserver, because 99% it already support
mod_gzip or deflate :-)
Bests,
Paolo Tresso (Pixline)
online media developer
------------------------------------
http://linkedin.com/in/paolotresso
techblog: http://pixline.net
skype: pixline
More information about the wp-testers
mailing list