So I'm now trying to do the same with namecoind.
I have a test environment setup on my Mac OSX 10.7.5 and I have Namecoin-QT running on there on port 8334.
I created a class Namecoin that extends jsonRPCClient (http://jsonrpcphp.org/code.php?file=jsonRPCClient)
Code: Select all
<?php
class Namecoin extends jsonRPCClient{
public function __construct(){
parent::__construct(Yii::app()->params['namecoinRpcUrl']);
}
}
?>
Code: Select all
if ($namecoin = new Namecoin()){
$namecoinNamespace = 'bcit';
$namecoinResponse = $namecoin->name_new($namecoinNamespace . '/' . 'testing123');
And then after 1 min:PROCESSMESSAGE MESSAGESTART NOT FOUND
It seems like the condition "if ($namecoin = new Namecoin())" succeeds, but then it doesn't like the $namecoin->name_new(...) part for some reason.socket no message in first 60 seconds, 1 0
disconnecting node 127.0.0.1:55982
Any idea what I'm doing wrong?