Warning: json_encode(): type is unsupported, encoded as null in couchbase -


i have installed couchbase on remote linux machine, , want access on windows using php scripts. using putty on windows 7.

my code below:

if(extension_loaded('couchbase')) {         $cluster = new couchbasecluster('http://23.99.27.188:8091');       $bucket = $cluster->openbucket('beer-sample');       $get = $bucket->get('demo');       echo json_encode($get); }  else  {         echo "error";     }   

but gives error:

warning: json_encode(): type unsupported, encoded null in c:\xampp\htdocs\couchbase\index.php on line 28 


Comments

Popular posts from this blog

gcc - MinGW's ld cannot perform PE operations on non PE output file -

timeout - Handshake_timeout on RabbitMQ using python and pika from remote vm -

c# - Search and Add Comment with OpenXML for Word -