[PHP] Re: Cannot make bzip2 stream "on the fly"

2012-01-31 Thread Michael Shestero
eam... fclose($bz); it gives exactly what I need. But still I wonder why bzopen() isn't work, meanwhile the phpdoc tells that it should work that way. --- Maciek Sokolewicz wrote: On 31-01-2012 15:34, Michael Shestero wrote: header("Content-Description: File Transfer"); heade

[PHP] Cannot make bzip2 stream "on the fly"

2012-01-31 Thread Michael Shestero
header("Content-Description: File Transfer"); header("Content-Disposition: attachment; filename=f.bzip2"); header("Content-Type: application/x-bzip2"); //header("Content-length: " . strlen($zippedfile) . "\n\n"); header("Content-Transfer-Encoding: binary"); ob_flush(); $bz = bzopen( 'php://outp