couchdb-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Apache Wiki <wikidi...@apache.org>
Subject [Couchdb Wiki] Trivial Update of "Getting_started_with_PHP" by Peter Vogel
Date Fri, 22 Mar 2013 18:41:32 GMT
Dear Wiki user,

You have subscribed to a wiki page or wiki category on "Couchdb Wiki" for change notification.

The "Getting_started_with_PHP" page has been changed by Peter Vogel:
http://wiki.apache.org/couchdb/Getting_started_with_PHP?action=diff&rev1=24&rev2=25

Comment:
Noah Slater's lead Link was pointing back to this page... added his GitHub Site

  }
  }}}
  == A CouchDB Request Class ==
- Now that we have a response class, we need something to organize our requests.  This class
will 1) build request headers and assemble the request, 2) send the request and 3) give us
the interesting part of the result.  Following [[GettingStartedWithPhp|Noah Slater's lead]],
we make our requests using ''fsockopen'', which allows us to treat our connection to the CouchDB
server as a file pointer.  When we execute the request, we pass the response on to a new ''CouchDBRequest''
object.
+ Now that we have a response class, we need something to organize our requests.  This class
will 1) build request headers and assemble the request, 2) send the request and 3) give us
the interesting part of the result.  Following [[https://github.com/nslater|Noah Slater's
lead]], we make our requests using ''fsockopen'', which allows us to treat our connection
to the CouchDB server as a file pointer.  When we execute the request, we pass the response
on to a new ''CouchDBRequest'' object.
  
  {{{
  class CouchDBRequest {

Mime
View raw message