master, please share tutorial create gzip compression for wapsite
How to create gzip compression
Collapse
X
-
Originally posted by Rrobyf View Postmaster, please share tutorial create gzip compression for wapsite
Added after 3 minutes:
for output compression check zlib.output.compression or ob_gzhandler at php.net PHP: Runtime Configuration - Manual
Added after 2 minutes:
and again for creating files you can use zlib library, PHP: Zlib - Manual ,Last edited by mFreak; 06.08.12, 06:59.PHP Code:$("#mfreak").find(".head brain").clone();
Code:[|||___________________________] : 5%
Code:Memory limit reached, unable to complete operation.
Code:Try using a super uber strong mega computer to reach at least 10%.
-
Originally posted by GumSlone View Postadd this on the top of your pages:
PHP Code:if(strstr($_SERVER["HTTP_ACCEPT_ENCODING"],"gzip"))
{
header("Content-Encoding: gzip");
header("Vary: Accept-Encoding");
ob_start('ob_gzhandler');
}
PHP Code:ob_end_flush();
PHP Code:$("#mfreak").find(".head brain").clone();
Code:[|||___________________________] : 5%
Code:Memory limit reached, unable to complete operation.
Code:Try using a super uber strong mega computer to reach at least 10%.
Comment
-
Originally posted by mFreak View Postand he should addPHP Code:ob_end_flush();
I need some facebook likes, can you please help me
http://facebook.com/softwarefreakin
I noticed social media is really powerful
Well DONE is better than well SAID
Comment
-
Originally posted by softwarefreak View PostNo need to add ob_end_flush() :P output is flushed by default :P until u don't use end clean :DPHP Code:$("#mfreak").find(".head brain").clone();
Code:[|||___________________________] : 5%
Code:Memory limit reached, unable to complete operation.
Code:Try using a super uber strong mega computer to reach at least 10%.
Comment
Comment