php - How can I download all the content of this URL and get json data? -
in php,
how can download content of url json variable? url = http://www.pinnaclesports.com/league/soccer/serie+a/1/lines.aspx
here 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 is: "\r\n\r\n\r\n
i have no thought of means, googling leaves me doubts.
where going wrong here?
ty
php json
No comments:
Post a Comment