Their PHP snippet with suggesting the PECL installation (would ideally stick with a non-PECL PHP option if exists)
Updated:
<?php
error_reporting(E_ALL);
ini_set("display_errors", "On");
$query_params = array(
// Specify your developer key
'key' => 'XXXXXXX',
);
$getdata = http_build_query($query_params);
$opts = array('http' =>
array(
'method' => 'GET',
'content' => $getdata
)
);
$context = stream_context_create($opts);
$response = file_get_contents('http://api.nfldata.apiphany.com/developer/JSON/UpcomingSeason?'.$getdata, false, $context);
?>
Not getting any errors through PHP syntax checker; also added attempt at enabling errors. Stumped as to why the screen is just white. Looking at standalone developer URL: http://api.nfldata.apiphany.com/developer/JSON/UpcomingSeason?key=XXXValidDeveloperKey displays '2014' when navigated to within browser. Implemented above nothing at all is displayed.
Recent Error:
Notice: file_get_contents() [function.file-get-contents]: Content-type not specified assuming application/x-www-form-urlencoded in /home/content/69/8610569/html/SFG/nfldata/currentseason.php on line 22