Re: [PHP] I need ob_write($string, $start, $length)

2004-08-03 Thread jtl_phpdotnet
Another way to provide this ob_write() feature is to give me a start offset on fwrite(), as in: fwrite($handle, $string, $length, $stringStartOffset) ~joe P.S. I think I see why the internals group sent me here. I didn't know about the handle-based stream functions, but looking over them they

Re: [PHP] Handles for multiple output buffers?

2004-08-03 Thread jtl_phpdotnet
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

Re: [PHP] I need ob_write($string, $start, $length)

2004-08-03 Thread jtl_phpdotnet
Hi Curt, You could use a function of the name and signature you gave, but if you implement it in PHP, you're still creating the substring objects that I don't want created. Notice your call to substr(). Object creation is expensive. If the function were implemented natively, the language nee

[PHP] Handles for multiple output buffers?

2004-08-02 Thread jtl_phpdotnet
Again, the internals list sent me to this forum for help. In trying to create a series of parsers in PHP, using only PHP core and no non-standard add-ons, I find myself emulating multiple character streams in a class that wraps the output buffer. Every time I open a new stream, I first save the

[PHP] I need ob_write($string, $start, $length)

2004-08-02 Thread jtl_phpdotnet
The guys in the internals list sent me to this forum. I am trying to write some serious parsing software in PHP. I need to use plain, vanilla PHP and no add-on modules, because I need to be able to distribute to people who don't have sufficient privileges. In the process of parsing I create a