Page 1 of 1

fopen('php://memory', 'w+')

Posted: Mon Feb 25, 2008 9:36 pm
by Chris Corbyn
How the hell did I not know this was possible? This provides a huge optimization for me when working with strings which I need to treat like streams :) Very cool.

Re: fopen('php://memory', 'w+')

Posted: Mon Feb 25, 2008 10:02 pm
by Luke
Interesting... may I ask what you're using this for?

Re: fopen('php://memory', 'w+')

Posted: Mon Feb 25, 2008 11:16 pm
by Zoxive
Very cool, I'm going to play around with this at work tomorrow.

Re: fopen('php://memory', 'w+')

Posted: Mon Feb 25, 2008 11:30 pm
by Chris Corbyn
The Ninja Space Goat wrote:Interesting... may I ask what you're using this for?
Iterating my way through every single byte in a long string.