Login   Register  
PHP Classes
elePHPant
Icontem

Works beautifully

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us

      PHPZip  >  All threads  >  Works beautifully  >  (Un) Subscribe thread alerts  
Subject:Works beautifully
Summary:Good stuff - how can I set compression rate?
Messages:1
Author:Ragnvald Larsen
Date:2007-02-06 16:49:50
 

  1. Works beautifully   Reply   Report abuse  
Picture of Ragnvald Larsen
Ragnvald Larsen
2007-02-06 16:49:50
I am trying out your code. Since my computer is fairly fast I would prefer to trim the compression rate. Would that be changing this line:

$zdata = gzcompress($data);

to

$zdata = gzcompress($data,n);

where n is compression-level (0-9)?


Ragnvald