[wp-testers] gzip_compression
Paolo Tresso / Pixline
supporto at pixline.net
Thu Apr 3 15:18:43 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 (Ryan) 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();
?>
Bests,
Paolo Tresso (Pixline)
online media developer
techblog: http://pixline.net
More information about the wp-testers
mailing list