Enabling gzip compression

2 posts by 2 authors in: Forums > CMS Builder
Last Post: December 20, 2012   (RSS)

Hi

I have a site hosted with godaddy and to enable gzip compression they recommended I place the folloiwng code at the top of every page in my site.

<?php if (substr_count($_SERVER['HTTP_ACCEPT_ENCODING'], 'gzip')) ob_start("ob_gzhandler"); else ob_start(); ?>

I'm not a php programmer so I just have a couple of queries about using it:

1. Will there be any conflict with the CMSB code I have on my site?

2. Would there be any security issues with using this code?

Thanks for any advice