Anyway to improve my gzip PHP method?

Posted by Joe on Stack Overflow See other posts from Stack Overflow or by Joe
Published on 2010-12-24T17:51:24Z Indexed on 2010/12/24 17:54 UTC
Read the original article Hit count: 162

Filed under:
|

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

© Stack Overflow or respective owner

Related posts about php

Related posts about gzip