Example of working with BZIP in PHP

<?php     $file = "/path/example.bz2";     $str = "A test string<br />";     $bz = bzopen($file, "w"); //...

Example of working with ZIP in PHP

<?php     $zip = new zipArchive();     $file = "/path/file.zip";          if ($zip ->open($file, zipArchive...