Quick Search:
 
 PHP Code: Read gzip File Jump to:  
Category: >> PHP Code >> Read gzip File  

<< lastnext >>

Snippet Name: Read gzip File

Description: This function will get contents of a gzip file into a string.

Comment: (none)

Language: PHP
Highlight Mode: PHP
Last Modified: March 01st, 2009

<?PHP 
 
// get contents of a gz-file into a string 
$filename = "/usr/local/something.txt.gz"; 
$zd = GZOPEN ($filename, "r"); 
$contents = GZREAD ($zd, 10000); 
GZCLOSE ($zd); 
 
?>
 


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