News Feed
Jobs Feed
Sections




News Archive
Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

Ligaya Turmelle's Blog:
Streams Gem
September 17, 2007 @ 19:05:00

Ligaya Turmelle shine up and shows off a streams gem that she rediscovered - a simple method of sending a POST request and getting it's response:

Was reminded today of a gem from the streams extension - sending a POST message and getting its results. We could do it using cURL or sockets - but why work that hard. Being lazy does have its advantages after all.

The example she includes is one from the manual, showing how to take the array of data and push it out to the remote site with a few simple calls (including stream_context_create).

1 comment voice your opinion now!
streams hint post request manual simple example streams hint post request manual simple example


blog comments powered by Disqus

Similar Posts

Job Posting: WWE Corporate Office Seeks Senior PHP Developer (Stamford, CT)

Job Posting: Workflow By Design Seeks Senior Software Developer (Beverly, MA)

Site News: Popular Posts for the Week of 06.29.2007

Job Posting: Photrade Seeks Agile Web Applications Developer (Cincinnati, OH)

Philip Olson's Blog: Learning how to help people contribute to the PHP.net Project


Community Events











Don't see your event here?
Let us know!


opinion security release introduction component unittest performance hhvm symfony2 hack series install language database application framework composer facebook package podcast

All content copyright, 2014 PHPDeveloper.org :: info@phpdeveloper.org - Powered by the Solar PHP Framework