Streaming to a file.
| From: | Richard Quadling | Date: | Mon, 21 Feb 2011 13:19:04 +0000 |
| Subject: | Streaming to a file. | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-311495@lists.php.net to get a copy of this message | ||
Hi.
Is there a way to use streams such that I can have my source stream as
"bzip2 . decompress : / / data . bz2" (had to add spaces as I think
this is causing a bounce on the lists for php) and my output stream as
"data", without having to read from one and write to the other in a
loop?
Essentially "push" the data from one place to another. Whilst I accept
buffering will happen in this, it seems boring to have to do it
myself.
Richard
--
Richard Quadling
Twitter : EE : Zend
@RQuadling : e-e.com/M_248814.html : bit.ly/9O8vFY