Hi,
I really hope someone can help me solve this problem. I just want to write some .php code using inputs received from bitcoin api calls but cannot get the JsonRPCClient.php working.
I can run a node (downloaded bitcoin) and can get bitcoin-qt working in the cmd prompt in windows 7; so it is connecting to the outside world ok.
But I try to run some simple .php on my localhost (using xampp apache engine) and this line of code is not working :
$bitcoin = new jsonRPCClient('
https://bitcoinrpc:12345@127.0.0.1:8332/');I get this error :
Warning: fopen(https://...@127.0.0.1:8332/): failed to open stream: No connection could be made because the target machine actively refused it.
in C:\xampp\htdocs\xampp\jsonRPCClient.php on line 132
Fatal error: Uncaught exception 'Exception' with message 'Unable to connect to
https://bitcoinrpc:12345@127.0.0.1:8332/' in C:\xampp\htdocs\xampp\jsonRPCClient.php:140
Stack trace:
#0 C:\xampp\htdocs\xampp\hello.php(14): jsonRPCClient->__call('getinfo', Array)
#1 C:\xampp\htdocs\xampp\hello.php(14): jsonRPCClient->getinfo()
#2 {main}
thrown in C:\xampp\htdocs\xampp\jsonRPCClient.php on line 140
Can,t seem to resolve it. Have tried various bitcoin.conf configurations, removed my firewall etc.
Any ideas please ?