note 15690 deleted from function.gzopen by jimw

From: Date: Fri, 11 Jan 2002 21:31:54 +0000
Subject: note 15690 deleted from function.gzopen by jimw
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-24691@lists.php.net to get a copy of this message
The above solution does not decompress on-the-fly. On-the-fly decompression isn't possible with php's gzip, but this works as well: <p> <?php $fname="http://something.big/movie.zip"; header("Content-type:application/octet-stream"); header("Content-Disposition: attachment; filename=\"movie.mpg\""); passthru("lynx -source $fname | gunzip -c - "); ?> </p> This solution does of course imply you've got lynx and gunzip available, so it doesn't work on Windows.

« previous php.notes (#24691) next »