Hi,
I have the following code below that is designed to send bitcoins to a certain address from php, using json rpc in php.
<?php
//send bitcoins
require "jsonRPCClient.php";
$bitcoin = new jsonRPCClient('http://username:password@127.0.0.1:8332/');
$bitcoin->sendtoaddress("1KxMF3DbtCu7DqXr5FUeG52U14vm8zyZwE 0.01");
?>
But my code always spits out:
"?????????????????????????????????????????????????????????????????????????????????????????????????E??????"
I also tried
<?php
//send bitcoins
require "jsonRPCClient.php";
$bitcoin = new jsonRPCClient('http://username:password@127.0.0.1:8332/');
$bitcoin->sendtoaddress("1KxMF3DbtCu7DqXr5FUeG52U14vm8zyZwE", 0.01);
?>
But still get the same output. What is going on, and how can I fix it.