Notice:
Notice:
Notice:
Notice:
Notice:
Notice:
Notice:
Notice:
Notice:
Notice:
Notice:
Notice:
Notice:
Notice:
Notice:
$string = 'Kompress aku...'; $fh = fopen('file.gz', 'w'); stream_filter_append($fh, 'zlib.deflate', STREAM_FILTER_WRITE, 9); fwrite($fh, $string); fclose($fh); $fh = fopen('file.gz', 'r'); stream_filter_append($fh, 'zlib.inflate', STREAM_FILTER_READ); fpassthru($fh); // Kompress aku... fclose($fh);