# server=1 tells Bitcoin to accept JSON-RPC commands.server=1
# By default, only RPC connections from localhost are allowed. Specify # as many rpcallowip= settings as you like to allow connections from # other hosts (and you may use * as a wildcard character):rpcallowip=10.1.1.34rpcallowip=192.168.1.*
require_once 'jsonRPCClient.php'; $bitcoin = new jsonRPCClient('http://user:password@127.0.0.1:8332/'); echo "<pre>\n"; print_r($bitcoin->getinfo()); echo "\n"; echo "Received: ".$bitcoin->getreceivedbylabel("Your Address")."\n"; echo "</pre>"
require_once '(path from web root)/jsonRPCClient.php'; $bitcoin = new jsonRPCClient('http://(user in bitcoin.conf):(pass in bitcoin.conf)@localhost:8332/'); echo "<pre>\n"; print_r($bitcoin->getinfo()); echo "\n"; echo "Received: ".$bitcoin->getreceivedbylabel("Your Address")."\n"; echo "</pre>"