Re: [PHP] gzip to max 9

2003-08-11 Thread Evan Nemerson
try setting zlib.output_compression_level in your php.ini



On Saturday 09 August 2003 09:42 am, Decapode Azur wrote:
 Dear All,


 ?php
 function wrl2wrz($buffer) { return gzencode ($buffer, 9); }
 ob_start(wrl2wrz);

 /* here the file */

 ob_end_flush(); # end of the output buffering
 ?

 In this exemple with output beffering it is possible to select the maximum
 compression level,

 is it possible to select the maximum compression level too
 when writing in a file like below ??

 $gzp = fopen($output_file, 'w');
 gzwrite($gzp, $content);
 gzclose($gzp);


 I think that the default compression level here is 6,
 and I would like to bring it to the maximum value 9.

-- 
A leader is the wave pushed ahead by the ship.

-Leo Nikolaevich Tolstoy


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] gzip to max 9

2003-08-10 Thread Decapode Azur

 try setting zlib.output_compression_level in your php.ini

won't it turn  'zlib.output_compression'  to On ?
(because I prefere to keep it Off)


-- 
  ?php
  function wrl2wrz($buffer) { return gzencode ($buffer, 9); }
  ob_start(wrl2wrz);
  /* here the file */
  ob_end_flush(); # end of the output buffering
  ?
 
  In this exemple with output beffering it is possible to select the
  maximum compression level,
 
  is it possible to select the maximum compression level too
  when writing in a file like below ??
 
  $gzp = fopen($output_file, 'w');
  gzwrite($gzp, $content);
  gzclose($gzp);
 
  I think that the default compression level here is 6,
  and I would like to bring it to the maximum value 9.


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] gzip to max 9

2003-08-09 Thread Decapode Azur
Dear All,


?php
function wrl2wrz($buffer) { return gzencode ($buffer, 9); }
ob_start(wrl2wrz);

/* here the file */

ob_end_flush(); # end of the output buffering
?

In this exemple with output beffering it is possible to select the maximum 
compression level,

is it possible to select the maximum compression level too
when writing in a file like below ??

$gzp = fopen($output_file, 'w');
gzwrite($gzp, $content);
gzclose($gzp);


I think that the default compression level here is 6,
and I would like to bring it to the maximum value 9.

-- 
cheers


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php