You might find this an interesting option:
- Create a PHP file as follows:
<?php
ob_start("ob_gzhandler");
?>
- In your your .htaccess file in your document root directory (or set in php.ini if you have access to it):
php_value auto_prepend_file filename.php
Where: "filename.php" is the name of the above php file if it's in your include path, or the full filesystem path to it if not.
The result: all your PHP pages will be buffered and, if the client supports it, will be compressed (which will reduce transmission time).