Jump to content

Stream that's not associated with a file?


Guest CF21

Recommended Posts

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! :)
Link to comment
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.
Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

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.