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);
?>
|