hi
I am using Cassandra 0.7.0 on windows. I am trying to use thobbs's
PHPcassa with it but when I try this:

require_once('Z:/wamp/bin/php/'.'phpcassa/connection.php');
require_once('Z:/wamp/bin/php/'.'phpcassa/columnfamily.php');
$conn = new Connection('Keyspace');
$column_family = new ColumnFamily($conn, 'Standard1');

I get error on the 4th line...Fatal error: Uncaught exception
'NoServerAvailable' in Z:\wamp\bin\php\phpcassa\connection.php:153
Stack trace: #0 Z:\wamp\bin\php\phpcassa\connection.php(53):
ServerSet->get() #1 Z:\wamp\bin\php\phpcassa\connection.php(64):
Connection->connect() #2
Z:\wamp\bin\php\phpcassa\columnfamily.php(171): Connection->connect()
#3 Z:\wamp\www\PhpProject\index.php(10):
ColumnFamily->__construct(Object(Connection), 'Standard1') #4 {main}
thrown in Z:\wamp\bin\php\phpcassa\connection.php on line 153


I guess I need to import the schema first, to remove this error.
Please tell me how to add the schema & if there is any another fixing
to be done.


-- 

___________________________________

Raj

Reply via email to