In php,
how can I download the content of this url into a json variable? url = http://www.pinnaclesports.com/League/Soccer/Serie+A/1/Lines.aspx
Here is my code:
<?php
include_once('simple_html_dom.php');
$serieaURL = "http://www.pinnaclesports.com/League/Soccer/Serie+A/1/Lines.aspx";
$serieaData = file_get_contents($serieaURL);
$json = json_encode($serieaData);
echo $json;
?>
All I get with this is: "\r\n\r\n\r\n
I have no idea of what this means, even googling that leaves me with doubts.
Where am I going wrong here?
Ty