lost data retrieving from remote couchdb
Hello! Im trying to use a remote couchdb as my database such as cloudant and im using the PHP on couch library -> https://github.com/dready92/PHP-on-Couch
here is my code trying to retrieve simple data, when i run this code outside of laravel from a php file alone, it works as expected but inside of laravel 5 the response received is like empty "bool(false)". Even if i try to request by curl (inside of laravel) i receive no data (i dont care about credential because is for educatoinal purposes) Thanks! ;
I dont know why but in this post the real url appears with a tag target which the value is the first parameter of the couchClient object -> new couchClient("https://socpa :asdargonnijao @ socpa . cloudant . com","users");
$client = new couchClient("@socpa.cloudant.com","users");" target="_blank">https://socpa:asdargonnijao@socpa.cloudant.com","users");
$db_get_recs = '';
$db_get_recs = $client;
$db_get_recs = $db_get_recs->include_docs(FALSE);
$db_get_recs = $db_get_recs->asArray();
$db_get_recs = $db_get_recs->getView('default','new-view');
print_r($db_get_recs);
Please or to participate in this conversation.