Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Added section about higher level clients.

...

  1. Copy in the PHP from the Cassandra client examples page to /var/www/cassandra-test.php.
  2. Visit http://localhost/cassandra-test.php in the browser.
  3. 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: