Are you trying to get this to work with bitcoin, or litecoin daemon? The two have slightly different API because of updates. Also, it would be helpful if you could describe the error you are having.
I'm trying to access Litecoin daemon.
if I call:
$wallet = new jsonRCPCClient('http://login:pass@localhost:9332');
echo $wallet->getbalance();
it works perfectly.
But I can't call:
$wallet = new jsonRCPCClient('http://login:pass@localhost:9332');
$txid = $wallet->sendtoaddress('LTCaddress');
It returns error:
PHP Fatal error: Uncaught exception 'Exception' with message 'Unable to connect to
http://username:password@localhost:9332' in /var/www/inc/jsonRPCClient.php