On Tue, 23 Oct 2001, Wez Furlong wrote: > Yep, or something like it. > > In some other code that I an using to test my streams idea, I have > implemented something a bit like a TMemoryStream that can do more or > less what you need - off the top of my head it looks sth like this; > > str = stream_mem_open(initial_string, initial_strlen); > stream_write(str, "hello", sizeof("hello")-1); > filestr = stream_fopen("license.txt", "r"); > stream_copy(filestr, str, 0); // the zero means until EOF of the src > stream_close(filestr); > char * output = stream_mem_get_ptr(str); > > This is not yet in PHP; it will be a couple of weeks before I can put > it in there.
Perhaps I'm missing something, but can you explain how this is better than what we have now? -Andrei * I don't have a solution but I admire the problem. * -- PHP Development Mailing List <http://www.php.net/> To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]