Couchbase Questions: PHP SDK

Have a Question? Get it answered by our community

monsters's picture
Asked 8 months 4 weeks ago
Latest activity 1 month 5 days ago

Do i need to escape keys when loading from a view?

i have a view emiting what looks like this

Key | Value
---------------------
one | something
two | something
a.b | something

now when querying, i can't get the a.b to show up, i'm assuming its the period in the middle. what do i...

glambert's picture
Asked 9 months 4 hours ago
Latest activity 8 months 3 weeks ago

Couchbase connection errors

Hi,

In the last 24 hours, despite catching every Couchbase exception listed, I'm getting hundreds of the following errors (as PHP notices):

Failed to establish libcouchbase connection to server: Connection failure
- this is when doing normal gets and view queries in the...

mandries's picture
Asked 9 months 3 weeks ago
Latest activity 3 months 2 weeks ago

undefined symbol: php_json_decode

The full error message is:

PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/lib/php5/20100525/couchbase.so' - /usr/lib/php5/20100525/couchbase.so: undefined symbol: php_json_decode in
...
househippo's picture
Asked 9 months 4 weeks ago
Latest activity 9 months 4 weeks ago

PHP - Failed to connect libcouchbase to the server on Centos/Redhat 6.4

Get an conncetion error
Warning: Failed to connect libcouchbase to the server: Connection failure in
on the webpage
BUT
When I run it through the command line the warning does not show.

I think its the same problem in the post but it does not give an answer....

elad.feinberg's picture
Asked 10 months 18 hours ago
Latest activity 10 months 18 hours ago

declare TTL on PHP SDK

Hi,
I've tried to find a way to declare TTL for new key, I see this option exists on Ruby's SDK but nor on PHP.
Is there a way to declare it on PHP?
Tnx,
E.

househippo's picture
Asked 10 months 3 days ago
Latest activity 10 months 1 day ago

Centos PHP SDK install issue

Cannt install the PHP SDK when I execute this command I get this:
# pecl install couchbase
I get this error
checking for gcc... no
configure: error: in `/var/tmp/pear-build-8Bfnq/couchbase-1.1.5':
configure: error: no acceptable C compiler found in $PATH
See `...

mandries's picture
Asked 10 months 1 week ago
Latest activity 9 months 4 weeks ago

PHP Warning: Failed to establish libcouchbase connection to server: Connection failure

I am trying to connect to a remote server installation of Couchbase 2.0.1 (verified through web console access) from my local workstation (Windows XP SP3) using the php sdk and I keep getting: "Warning: Failed to establish libcouchbase connection to server: Connection failure in ..."
I am...

rdominy's picture
Asked 11 months 4 weeks ago
Latest activity 11 months 3 weeks ago

Key limit in View queries?

I'm querying a view using the PHP SDK using the view method, $object->view($ddocname [, $viewname ] [, $viewoptions ]), and finding that when I pass in a certain number of keys in the viewoptions param, the method silently fails and just returns null. It appears that 164 keys is OK, but 179...

cschlupp's picture
Asked 1 year 1 day ago
Latest activity 12 months 1 day ago

Re-adding documents fails

Hi folks,
I experienced a weird behaviour on my Couchbase cluster running version 2.0.1 community edition (build-170-rel).
Through PHP-lib I execute the following code:

  $json =
...
ebrue's picture
Asked 1 year 1 week ago
Latest activity 1 year 3 days ago

How do I tell what version of the PHP SDK I am running?

How do I tell what version of the PHP SDK I am running? From "php -i | grep couchbase" I get this:
couchbase
couchbase support => enabled
couchbase.compression_factor => 1.3 => 1.3
couchbase.compression_threshold => 2000 => 2000
couchbase.compressor...

Pages