Bitcoin Forum
July 04, 2024, 11:13:30 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: PHP stops working when it sends RPC command to wallet  (Read 783 times)
imrer (OP)
Full Member
***
Offline Offline

Activity: 154
Merit: 100


View Profile
September 21, 2013, 07:36:33 PM
 #1

When I call command to wallet cez RPC API (json), PHP stops working and stops sending data to client (apache2).

I can communicate with wallet cez SSH with no problem.

Start your own casino site: » CoinDice | CoinWheel «
yabtcl
Full Member
***
Offline Offline

Activity: 189
Merit: 103



View Profile
September 21, 2013, 08:21:08 PM
 #2

When I call command to wallet cez RPC API (json), PHP stops working and stops sending data to client (apache2).

I can communicate with wallet cez SSH with no problem.

I don't know, it looks like is a problem in your code, maybe if you post some snipped it will be easier to identify the problem.

imrer (OP)
Full Member
***
Offline Offline

Activity: 154
Merit: 100


View Profile
September 21, 2013, 08:36:00 PM
 #3

Code:
include './inc/jsonRPCClient.php';
$wallet=new jsonRPCClient($settings['bitcoinrpc_login']);
This is returning error:
Code:
echo $wallet->getbalance();

Start your own casino site: » CoinDice | CoinWheel «
Evolyn
Sr. Member
****
Offline Offline

Activity: 376
Merit: 312


Can you say... nighty-night?


View Profile
September 24, 2013, 03:31:28 PM
 #4

how does $settings['bitcoinrpc_login'] look like?

is it something like
Code:
http://user:password@host:port/
?

What error do you get?

Forex meets Bitcoin Exchange: Release the Kraken
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!