Return to Snippet

Revision: 11813
at February 19, 2009 14:14 by sveggiani


Updated Code
// METHOD 1: Add a line to your .htaccess file:
// php_flag zlib.output_compression On

// METHOD 2: Add or change a line in your php.ini file:
// zlib.output_compression = On


// METHOD 3: Add a line to the top of your PHP scripts before any output:
ini_set('zlib_output_compression','On');

Revision: 11812
at February 19, 2009 14:13 by sveggiani


Updated Code
// METHOD 1: Add a line to your .htaccess file:
// php_flag zlib.output_compression On

// METHOD 2: Add or change a line in your php.ini file:
// zlib.output_compression = On


// METHOD 3: Add a line to the top of your PHP scripts before any output:
ini_set(�zlib_output_compression�,'On�);

Revision: 11811
at February 19, 2009 13:52 by sveggiani


Initial Code
// Add a line to your .htaccess file:
// php_flag zlib.output_compression On

// Add or change a line in your php.ini file:
// zlib.output_compression = On


// Add a line to the top of your PHP scripts before any output:
ini_set(’zlib_output_compression’,'On’);

Initial URL
http://blog.jc21.com/2007-02-08/how-to-use-gzip-to-load-your-site-faster/

Initial Description

                                

Initial Title
enable gzip (zlib) in php

Initial Tags
htaccess

Initial Language
PHP