Bitcoin Forum
May 09, 2024, 07:44:47 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Was easybitcoin and php5  (Read 641 times)
Maik_37 (OP)
Newbie
*
Offline Offline

Activity: 20
Merit: 0


View Profile
June 05, 2015, 04:06:06 PM
Last edit: June 24, 2015, 09:22:19 AM by Maik_37
 #1

I'm using the library easybitcoin to interact with php bitcoind this and the file test.php when I run it I get this error: Notice: Array to string conversion in Array

Code:
ini_set('display_errors', 1);
ini_set('display_startup_errors', 1);
error_reporting(E_ALL | E_STRICT);

require_once ('easybitcoin.php');
$bitcoin = new Bitcoin('bitcoinrpc','G7BZDHzNdbJ38oqmXSHXbYwsbNY6Djz3gX9SAE7fisud');
$info = $bitcoin->getinfo();
echo $info;

I solved the problem with print_r ($ info)
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!