Re: Handles for multiple output buffers?
| From: | jtl_phpdotnet at spamex dot com | Date: | Tue, 03 Aug 2004 23:10:51 +0000 |
| Subject: | Re: Handles for multiple output buffers? | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-192633@lists.php.net to get a copy of this message | ||
Hi again Curt,
On 8/3/2004 Curt Zirzow wrote:
>You may be seeking: http://php.net/stream-wrapper-register
>
>With the example listed, you can have as many buffers as you
>please.
Yeah, I could do what I'm already doing by implementing the interface you pointed me to.
The problem is that stdout appears to be the only in-memory buffered character stream available to
me. I need an abitrary number of such streams.
Emulating these streams, as one might do by implementing the interfaces you pointed me to,
doesn't solve the problem; this is what I'm doing. In my emulation I have to constantly
cache and restore the contents of stdout.
Am I correct in saying that PHP only has this one in-memory buffered character stream? (I need it
to be in-memory because the goal is to maximize performance.)
Again, it's crucial that buffering be done natively by PHP, since otherwise you're just
creating string objects that buffering is supposed to prevent you from having to create.
Thanks again for your suggestion!
~joe