Phine Solutions web work notes

PHP output compression

Filed under: PHP development by 1.618 — October 31, 2006 9:20 pm

In php.ini file

zlib.output_compression=On
zlib.output_compression_level=5

If you use ob_start() (output buffering)Â in php script:

use ob_start(‘ob_gzhandler‘);

Using both will not get the output compressed twice ;) , there will be an error reporting confliction instead.

No Comments »

No comments yet.

RSS feed for comments on this post. TrackBack URI

Leave a comment

©phinesolutions.com