Jump to content


Stream that's not associated with a file?


  • Please log in to reply
2 replies to this topic

#1 Guest_CF21_*

Guest_CF21_*
  • Guests

Posted 30 August 2006 - 05:05 PM

Hello,

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

http://us3.php.net/m...curl-setopt.php

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! :)

#2 Guest_CF21_*

Guest_CF21_*
  • Guests

Posted 30 August 2006 - 07:20 PM

grr...

#3 Barand

Barand
  • Moderators
  • Sen . ( ile || sei )
  • 18,021 posts

Posted 30 August 2006 - 10:54 PM

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.
If you are still using mysql_ functions, STOP! Use mysqli_ or PDO. The longer you leave it the more you will have to rewrite.

Donations gratefully received






moon.png

|baaGrid| easy data tables - and more
|baaChart| easy line, column and pie charts




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users