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.
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