[an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] (none) [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] (none) [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive]
 
[an error occurred while processing this directive] [an error occurred while processing this directive]
Skåne Sjælland Linux User Group - http://www.sslug.dk Home   Subscribe   Mail Archive   Forum   Calendar   Search
MhonArc Date: [Date Prev] [Date Index] [Date Next]   Thread: [Date Prev] [Thread Index] [Date Next]   MhonArc
 

php5 Hvornår bruges hvilken komprimering bedst?



Jeg sidder og roder lidt med php5, og er nået til komprimering.
Kildeeksempel:
<?php
$test="Den lille røde ræv sprang over hegnet efter en agerhøne, som slet
ikke brød sig om det, men fløj sin vej i en fart, der ikke var ulig en
gumpetung frøs spring ud i en sø.";
print(strlen($test) . ": " . $test . "<hr>");
$bztext=bzcompress($test,9);
print(strlen($bztext) . ": " .bin2hex($bztext) . "<hr>");
print(bzdecompress($bztext) . "<hr>");

$gztext=gzcompress($test,9);
print(strlen($gztext) . ": " .bin2hex($gztext) . "<hr>");
print(gzuncompress($gztext) . "<hr>");

$gdtext=gzdeflate($test,9);
print(strlen($gdtext) . ": " .bin2hex($gdtext) . "<hr>");
print(gzinflate($gdtext) . "<hr>");
?>

Det har fået mig til at spekulere over, hvornår man vælger den ene frem
for den anden metode. Er der nogen, der har et bud?


 
Home   Subscribe   Mail Archive   Index   Calendar   Search

 
 
Questions about the web-pages to <www_admin>. Last modified 2006-08-01, 02:01 CEST [an error occurred while processing this directive]
This page is maintained by [an error occurred while processing this directive]MHonArc [an error occurred while processing this directive] # [an error occurred while processing this directive] *