PHP – Read Entire gz-file into an Array

This function is identical to readgzfile(), except that it returns the file in an array.

Code Example:
<?php
$lines = gzfile('file.gz');
foreach ($lines as $line) {
   echo $line;
}
?>

Post to Twitter Post to Digg Post to Facebook Post to Google Buzz Send Gmail

Leave a Comment

Your email address will not be published. Required fields are marked *