gzfile
gzfile
Read entire gz-file into an array
**gzfile** string $filename bool $use_include_path
This function is identical to , except that
it returns the file in an array.
readgzfile
filenameThe file name.
use_include_path
If set to true, files in the are searched for too.
include_path
An array containing the file, one line per cell, empty lines included, and with newlines still attached, return.falseforfailure.
Voorbeeld: example
<?php
$lines = gzfile('somefile.gz');
foreach ($lines as $line) {
echo $line;
}
?>
readgzfile``gzopen