Bitcoin Forum
May 06, 2024, 01:47:43 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
  Home Help Search Login Register More  
  Show Posts
Pages: [1]
1  Bitcoin / Bitcoin Technical Support / can get jsonRPCClient.php working on: July 23, 2015, 05:09:52 AM
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 ?

Pages: [1]
Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!