Couchbase driver for PHP
./ ./README.md This file. ./memcached.so The PHP extension as a shared library.
php.ini to include this line:
To find where you
php.ini file is, try
phpi -i | grep memcached or look
<?php phpinfo() ?> output.
Run this test script:
<?php $mc = new Memcached; $mc->addServer("localhost", 11211); $mc->set("a", 1); var_dump($mc->get("a"));
Make sure you have started your memcached, Membase or Couchbase server. Adjust the hostname and port as needed.
If you have an questions, problems or suggestions, please let us know on the Couchbase SDK forums:
Build from Source
To build this package from source, follow these steps:
$ curl http://android.git.kernel.org/repo > ~/bin/repo $ chmod a+x ~/bin/repo
$ mkdir php-couchbase-memcached $ repo init -u git://github.com/couchbase/php-memcached-manifest.git