Post
Topic
Board Announcements (Altcoins)
Re: NXT :: descendant of Bitcoin - Updated Information
by
rriky92
on 27/01/2014, 23:01:15 UTC
I have multiple voting methods coded for community testing (per utopianfuture's proposal) I just need a way to send and receive API calls in PHP. The below example returns NULL... Suggestions?

Code:
  function get_web_page$url )
    {
...
        
$ch curl_init($url);
...
    }

$result get_web_page('http://node6.mynxt.info:7874/nxt?requestType=getBalance&account=10006970057300228034');

var_dump($result);

?>

Maybe try:
function get_web_page($url)
{
    return file_get_contents($url);
}

Code:
$jsonurl "http://node6.mynxt.info:7874/nxt?requestType=getBalance&account=10006970057300228034";
$result file_get_contents($jsonurl);
var_dump(json_decode($result));
?>