* PURPOSE. See the License for the specific language governing permissions and * limitations under the License. * * Author: Adam Venturella - aventurella@gmail.com * * @package Sample * @author Adam Venturella <*****@*****.**> * @copyright Copyright (C) 2009 Adam Venturella * @license http://www.apache.org/licenses/LICENSE-2.0 Apache 2.0 * **/ /** * Sample */ require 'couchdb/CouchDB.php'; /* Note that you DO NOT have to be an administrator to view a users info. You will most likely want to set: [couch_httpd_auth] require_valid_user = true in your local.ini or default.ini on OS X you can find them here if you compiled from source: /usr/local/etc/couchdb and set your users roles/acl accordingly to exclude the users db */ $db = new CouchDB(); $user = $db->user('testuser'); print_r($user);