edoceo

Radix PHP Couch DB


<?php
/**
    @file
    @brief Couch DB Integration Example
*/


// Init the Static Class
radix_db_couch::init(array('host'=>'http://couch-host:5984/database','user'=>'root','pass'=>'root'));

// Uses defaults set above
$c0 = new radix_db_couch();

// Use these settings
$c1 = new radix_db_couch(array('host'=>'http://other-host:5984/database','user'=>'root','pass'=>'root'));

Loading Comments from Disqus...