Anyway to improve my gzip PHP method?
- by Joe
I Gzip my pages currently like so:
<?php
ob_start("ob_gzhandler");
//my page content
ob_flush();
?>
However, I read a comment somewhere, earlier on, that this method uses a lot of memory, and I know that my website has been using a lot of memory on my virtual private server, so I thought it would be nice if I knew a way to reduce memory usage.
I tested my site with an online gzip tester which says my websites are sending gzipped pages, so my gzip method works, but the main obviously I'm looking for a less memory intensive option, if any.
I appreciate all suggestions. :) Oh and merry christmas ;P