Have some1 the same problem:
Fatal error: Uncaught exception 'Exception' with message 'Unable to connect to http://nick:password@domain:22555/' in /var/www/jsonRPCClient.php:139
Stack trace:
#0 /var/www/index.php(7): jsonRPCClient->__call('getinfo', Array)
#1 /var/www/index.php(7): jsonRPCClient->getinfo()
#2 {main}
thrown in /var/www/jsonRPCClient.php on line 139
I've this code
<?php
require_once 'jsonRPCClient.php';
&#12288;$dogecoin = new jsonRPCClient('nick:password@domain:22555');
try{
&#12288;echo "<pre>\n";
&#12288;print_r($dogecoin->getinfo());
&#12288;echo "</pre>";
} catch(Exception $e){
&#12288;echo nl2br($e->getMessage()).'<br />'."\n"; }
?>
With Exception I've got this error
Parse error: syntax error, unexpected '$dogecoin' (T_VARIABLE) in /var/www/index.php on line 9