Quantcast
Channel: How to get send gzip content as PHP response - Stack Overflow
Browsing all 4 articles
Browse latest View live

Answer by Real for How to get send gzip content as PHP response

If you cannot update your php.ini config file before using ob_gzhandler() you could try this too:ini_set('zlib.output_compression', 1);

View Article



Answer by trrrrrrm for How to get send gzip content as PHP response

Option 1:configure zlib.output_compression in your php.iniDoc: http://www.php.net/manual/en/zlib.configuration.php#ini.zlib.output-compressionOption 2:Use : ob_gzhandlerDoc:...

View Article

Answer by Chase for How to get send gzip content as PHP response

Before outputing anything on the page throw in this:ob_start("ob_gzhandler");Then after your content follow it up with:ob_end_flush();And your content will be gzipped

View Article

How to get send gzip content as PHP response

my ajax response is very large its actually 900kb. so I need to gzip to improve the performance.can anyone please help me to get gziped content from my php.Thanks in advance.

View Article
Browsing all 4 articles
Browse latest View live




Latest Images