0

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

  • http://stackoverflow.com/questions/11733876/how-to-get-content-ot-remote-html-page – Ronnie Oct 27 '14 at 22:10
  • That page doesn't appear to be JSON...it's just html, css and javascript. Are you wanting to collect the data from that page and form it into a JSON object? – jiy Oct 27 '14 at 22:29
  • Hi jiY. yes, that is want I want to do. But if it is only html, should I not get a list of links with my lines of code? – vittorio somaschini Oct 28 '14 at 06:49

0 Answers0