[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 skal man vælge hvilken komprimering?



Jeg sidder og funderer lidt over hvilken type komprimering, der skal
anvendes i hvilken sammenhæng.
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("bz: " .strlen($bztext) . ": " .bin2hex($bztext) . "<hr>");
// print(bzdecompress($bztext) . "<hr>");

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

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

?>

Er der nogen, der har en god tommelfingerregel?


 
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] *