Recommend this page to a friend! | Stumble It! | Bookmark in del.icio.us |
Classes of Max V. Moiseenko | > | gzip | > | example.php | > | Download | ||
|
Download |
<? if(!defined("_GZIP")) include("gzip.php"); $path = "test.gz"; $filedata = "some file content"; # new object $gz = new gzip(); # step 1 # add data to archive $gz->add( $filedata, $path ); # and write gzip file $gz->write_file($path); #step 2 # extracting content from archive if( $g = $gz->extract($path) ){ # print result structure print_r($g); } ?> |