aceat64/EasyBitcoin-PHP

Empty reply from server

faanigee opened this issue · 2 comments

hello dear i m trying to use easybitcoin to connect my bitcoind daemon to get wallet info and etc etc.
i m using bitcoin.conf file

server=1
daemon=1
rpcallowip=connecting server ip/0
rpcuser=username of mine
rpcpassword=password
rpcport=8333
listen=1
keypool=10000
prune=600
maxuploadtarget=20
maxconnections=16
walletnotify=/var/www/html/cron/receive.sh %s

and in easy bitcoin i m connecting like this

"; $info = $bitcoin->getinfo(); print_r($info); echo "
"; print_r($bitcoin->getwalletinfo() ); echo"
"; echo $info ? $info : "Oops an error: ".$bitcoin->error; ?>

it give me output
Empty server reply

what is wrong in my code please any one help me????

How do you set $bitcoin?

cxla commented

me same problem, this is lie code