PHP/File Directory/stream filter append
Reading compressed data from a URL
<source lang="html4strict">
<?php $fp = fopen("http://www.example.ru/something-compressed.bz2","r"); stream_filter_append($fp, "bzip2.uncompress"); while (! feof($fp)) {
$data = fread($fp);
} fclose($fp); ?>
</source>