Using Thrift to allow PHP to operate Cassandra is undoubtedly a preferred solution, but configuration and operations are troublesome. We can use a php module phpcassa to operate Cassandra. Let's insert some data first: Download phpcassa: github.comdownloadshoanphpcassaphpcassa-0.1.zip extract, put it in the project
Using Thrift to allow PHP to operate Cassandra is undoubtedly a preferred solution, but configuration and operations are troublesome. We can use a php module phpcassa to operate Cassandra. Let's insert some data first: Download phpcassa: http://github.com/downloads/hoan/phpcassa/phpcassa-0.1.zip extract, put it in the project
Using Thrift to allow PHP to operate Cassandra is undoubtedly a preferred solution, but configuration and operations are troublesome.
We can use a php module phpcassa to operate Cassandra.
Insert some data first:
Download phpcassa: http://github.com/downloads/hoan/phpcassa/phpcassa-0.1.zip
Decompress the package to the include directory of the project.
Write a PHP file with the following content:
The result is as follows:
Array ([age] => 28 [first] => jiang [last] => yujie)