Re: [PHP-DEV] Substring writes and buffered char streams

2004-08-07 Thread jtl_phpdotnet
Hi Wez. Here are some clarifications... On 8/7/2004 Wez. wrote: >I suppose we could add that. Keep in mind that strings in PHP aren't >hugely expensive unless you are doing something wrong (tm) like using >10MB strings. Strings are cheap in Java too. The issue is object creation and cleanup. W

[PHP-DEV] Substring writes and buffered char streams

2004-08-07 Thread jtl_phpdotnet
Hello PHP gurus, The php-general list does not believe that PHP allows me to do either of the following: (1) Writing an arbitrary substring of a string directly to a stream without first creating a string object for the substring. I.E. There is no print($string, $start, $length) or fwrite($res

[PHP-DEV] Lamenting PHP's streaming support...

2004-08-01 Thread jtl_phpdotnet
Hi everyone, I'm trying to write some serious parsing applications in PHP. I find myself frequently lamenting the 4GL-like support for buffered streams. I'd rather a full fledged streaming API with stream handles (or objects) like you get in mature 3GL languages like C and Java. I'm making d

[PHP-DEV] Need two simple string funcs for parsing

2004-07-08 Thread jtl_phpdotnet
Hello, My name is Joe Lapp, and I have written high-speed portal-side parsers in Java for XML, HTML, and various other XML-related syntaxes (e.g. XQL). I am planning a series of new parsing technologies that I'd like to implement in PHP. To allow my parsers to perform with high efficiency in P