Thanks, Manuel, those are both very good ideas that we will make use of. My original problem is simpler than that, though: I'd like to pre-allocate a buffer for the string. Is this possible in PHP?
This is possible in both C/C++ and Delphi (with SetLength() in Delphi). The reason for this to have let's say 4-5 re-allocations instead of ~10,000+ re-allocations. Of course we could get into the source of PHP to add the functionality (or alternatively, roll our own cache object), but this is a very basic feature, and I'm sure it does have it, I'm just too unlucky not finding out how... Happy New Year, Peter -- PHP Windows 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]