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] I need ob_write($string, $start, $length)

2004-08-03 Thread Justin Patrin
On Mon, 02 Aug 2004 23:58:58 -0400, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > 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 distribut

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

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

2004-08-02 Thread Curt Zirzow
* Thus wrote [EMAIL PROTECTED]: > 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 > privileg

[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