Author

Topic: Not able to connect to my bitcoind server through php, but works in curl (Read 635 times)

sr. member
Activity: 420
Merit: 250
Ever wanted to run your own casino? PM me for info
Only thing that stands out is the final slash in the url - try removing that!
Should have marked this as resolved. The slash doesn't really make a difference in anything, the web host had blocked the port 8332 and thats why I could not connect from that.
sr. member
Activity: 412
Merit: 287
Only thing that stands out is the final slash in the url - try removing that!
sr. member
Activity: 420
Merit: 250
Ever wanted to run your own casino? PM me for info
I am setting up a website for someone, and I have this script in a file called getinfo.php (for testing)
Keep in mind that all of this is on an external server.
Code:
require('config.php');
require_once 
'jsonRPCClient.php';
$btc = new jsonRPCClient"http://$btc_username:$btc_password@$btc_ip:$btc_port/" ) ;
print_r($btc->getinfo());
?>
All the IP, port, user, password and everything is fine, however it does not seem to want to connect to the server.
Through terminal on my mac computer, I use curl and I was able to connect and do the getinfo command.
What could be causing this issue?
RESOLVED
Jump to: