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

2012-01-31 Thread Michael Shestero
Thank you for response. Script is server-side. It is to send a packed data as file (but the source isn't actually a file) via HTTP to client. bzcompress() are not suitable, because it cannot pack the stream on the fly (I have to store all amount of data in local variable before call it). My tas

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

2012-01-31 Thread Maciek Sokolewicz
On 31-01-2012 15:34, Michael Shestero wrote: 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: bi