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

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
User avatar
Chris Corbyn
Breakbeat Nuttzer
Posts: 13098
Joined: Wed Mar 24, 2004 7:57 am
Location: Melbourne, Australia

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

Post 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.
User avatar
Luke
The Ninja Space Mod
Posts: 6424
Joined: Fri Aug 05, 2005 1:53 pm
Location: Paradise, CA

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

Post by Luke »

Interesting... may I ask what you're using this for?
User avatar
Zoxive
Forum Regular
Posts: 974
Joined: Fri Apr 01, 2005 4:37 pm
Location: Bay City, Michigan

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

Post by Zoxive »

Very cool, I'm going to play around with this at work tomorrow.
User avatar
Chris Corbyn
Breakbeat Nuttzer
Posts: 13098
Joined: Wed Mar 24, 2004 7:57 am
Location: Melbourne, Australia

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

Post 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.
Post Reply