Jump to content

Archived

This topic is now archived and is closed to further replies.

Guest CF21

Stream that's not associated with a file?

Recommended Posts

Guest CF21
Hello,

How do I create a stream that's not actually tied to a file?  I'm trying to use [tt]CURLOPT_PUT[/tt] to transfer a string via HTTP PUT:

[url=http://us3.php.net/manual/en/function.curl-setopt.php]http://us3.php.net/manual/en/function.curl-setopt.php[/url]

but unfortunately this requires that I provide a file stream, not a raw string.  I don't want to create a temporary file on disk and then delete it just to do this.

Anyone familiar with cURL or PHP streams, please help! :)

Share this post


Link to post
Share on other sites
I, and probably many others, tend to look at posts with no replies first, so bumping lessens your chances.

When I see someone impatiently stamping their feet and throwing a tantrum beacause they didn't get an immediate reply I hit the back button and go to another post. Just something you might want to bear in mind, as I may not be the only one.

Share this post


Link to post
Share on other sites

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.