...
- Copy in the PHP from the Cassandra client examples page to
/var/www/cassandra-test.php
. - Visit
http://localhost/cassandra-test.php
in the browser. - On the first load, the array output should be empty. On the second, there should be content.
Consider using higher-level clients
While it's possible to use the low-level Thrift API, it's hard to learn and very inefficient as you will end up writing lots of code for very simple tasks such as fetching and reading data, it's advised to use some high-level client.
Good candidates include: