Jump to content

GZIP compression


atticus

Recommended Posts

Hi all,

 

I am using shared hosting and I do not have access to the server and I am trying to use php to gzip my components.  I know my server is ablt to gzip because I have a version of zen-cart installed on it and it gzips the components.  Its just not working.

 

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

 

 

Link to comment
https://forums.phpfreaks.com/topic/91256-gzip-compression/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.