Posted By

daipratt on 04/21/10


Tagged

php gzip compression


Versions (?)

Who likes this?

1 person have marked this snippet as a favorite

larste


Active gzip on a linux server running PHP


 / Published in: PHP
 

URL: http://zoocha.com

  1. // Update php.ini: (global is usually found at /etc/php.ini)
  2. zlib.output_compression = On
  3.  
  4. OR
  5.  
  6. // Update .htaccess file with:
  7. php_flag zlib.output_compression On
  8.  
  9. OR
  10.  
  11. // Add a line at the top your PHP code:
  12. ini_set('zlib_output_compression','On');

Report this snippet  

You need to login to post a comment.