note 82310 added to ref.zlib

From: Date: Sat, 05 Apr 2008 00:39:06 +0000
Subject: note 82310 added to ref.zlib
Groups: php.notes 
Request: Send a blank email to php-notes+get-137945@lists.php.net to get a copy of this message
ini_set('zlib.output_compression', 'On') doesn't work It says that zlib.output_compression is PHP_INI_ALL changable, but in my case at least, this is not true. When using ini_set('zlib.output_compression', 'On') runtime, phpinfo() states that zlib.output_compression is enabled, yet there is no compression. Since I don't want to enable zlib.ouput_compression for all sites in php.ini, my solution was to enable it in apache conf (.htaccess should work as well) with the line: php_flag zlib.output_compression on Just spent hours figuring this out, so I hope it helps other people. Btw, I'm using Apache/2.2.4 (Ubuntu) PHP/5.2.3-1ubuntu6.3. ---- Server IP: 62.73.196.231 Probable Submitter: 84.48.49.19 ---- Manual Page -- http://www.php.net/manual/en/ref.zlib.php Edit -- https://master.php.net/note/edit/82310 Del: integrated -- https://master.php.net/note/delete/82310/integrated Del: useless -- https://master.php.net/note/delete/82310/useless Del: bad code -- https://master.php.net/note/delete/82310/bad+code Del: spam -- https://master.php.net/note/delete/82310/spam Del: non-english -- https://master.php.net/note/delete/82310/non-english Del: in docs -- https://master.php.net/note/delete/82310/in+docs Del: other reasons-- https://master.php.net/note/delete/82310 Reject -- https://master.php.net/note/reject/82310 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#137945) next »