Guest FirefoxRocks Posted July 19, 2010 Share Posted July 19, 2010 Ok since I'm using a buffering function in my PHP code, I can't use ob_start('ob_gzhandler); . I have to enable gzip compression in htaccess, but I've tried many code samples I've found on Google with no luck.I only need to compress HTML and PHP output, I already have JavaScript and CSS taken care of. Can anyone please give me some code that works? Link to comment Share on other sites More sharing options...
justsomeguy Posted July 19, 2010 Share Posted July 19, 2010 Do you need to use htaccess files or does your server have cPanel? You can use cPanel's Optimize Website tool to compress any mime types you tell it to. Link to comment Share on other sites More sharing options...
Guest FirefoxRocks Posted July 19, 2010 Share Posted July 19, 2010 Do you need to use htaccess files or does your server have cPanel? You can use cPanel's Optimize Website tool to compress any mime types you tell it to.I can't find any option that says Optimize Website in cPanel. Link to comment Share on other sites More sharing options...
justsomeguy Posted July 19, 2010 Share Posted July 19, 2010 It's under the Software/Services section, but your host may have disabled it for whatever reason. If that's the case, it's probably best that you ask the host how to enable compression for those things. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.