Re: how do I use php://memory?

From: Date: Sat, 30 Jan 2010 01:00:27 +0000
Subject: Re: how do I use php://memory?
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-301670@lists.php.net to get a copy of this message
Mari Masuda wrote: > Has anyone ever successfully used php://memory before? If so, what > can I do to use it in my code? Thank you. No, but I was intrigued to try it, so I tested this: $text = 'Some text.'; file_put_contents('php://memory', $text); echo file_get_contents('php://memory'); And it returned nothing. The docs suck on this and it apparently doesn't work. I see others use it with fopen(), but there is no mention of which file functions it works with and which it doesn't. -- Thanks! -Shawn http://www.spidean.com

« previous php.general (#301670) next »