Active gzip on a linux server running PHP


/ Published in: PHP
Save to your folder(s)



Copy this code and paste it in your HTML
  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');

URL: http://zoocha.com

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.