Quick Search:
 
 PHP Code: Create gzip file Jump to:  
Category: >> PHP Code >> Create gzip file  

<< lastnext >>

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

<?PHP 
 
    $data = IMPLODE("", FILE("bigfile.txt")); 
    $gzdata = GZENCODE($data, 9); 
    $fp = FOPEN("bigfile.txt.gz", "w"); 
    FWRITE($fp, $gzdata); 
    FCLOSE($fp); 
 
?>
 


 
   Home |    Search |    Code Library |    Sponsors |    Privacy |    Terms of Use |    Contact Us © 2003 - 2024 psoug.org