Author

Topic: Was easybitcoin and php5 (Read 660 times)

newbie
Activity: 20
Merit: 0
June 05, 2015, 11:06:06 AM
#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)
Jump to: