To verify you have set up the PHP SDK correctly follow these steps:
Create a new file named test.php andplace the following test code it:
<?php $cb = new Couchbase("127.0.0.1:8091", "username", "password", "default"); $cb->set("a", 1); var_dump($cb->get("a")); ?>
Save the new script as test.php.
Start your Couchbase Server. Note the ip address and port for Couchbase Server and any username and password.
If needed, update the IP address, username and password in test.php with your Couchbase Server information.
Run your test script:
shell> php test.phpCouchbase Server returns 1.