Snippet Name: Create gzip file Description: Basic example of creating gzip file on the fly. Comment: (none) Language: PHP Highlight Mode: PHP Last Modified: March 01st, 2009
Description: Basic example of creating gzip file on the fly.
<?PHP $data = IMPLODE("", FILE("bigfile.txt")); $gzdata = GZENCODE($data, 9); $fp = FOPEN("bigfile.txt.gz", "w"); FWRITE($fp, $gzdata); FCLOSE($fp); ?>