我爱占星网 我爱占星网
首页
编程
java
php
前端
首页 编程 java php 前端

如何下载此URL的所有内容并获取json数据?

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: "

I have no idea of what this means, even googling that leaves me with doubts.

Where am I going wrong here?

Ty

近期文章

  • 想象PDF到JPG缺少图层。 需要将文件从PDF 1.6转换为1.4
  • 发送推荐网址卷曲
  • 制作一个打开网站的按钮,开始重定向倒计时,但仅在来自特定推荐时重定向
  • Wordpress管理员链接
  • 更改表的单元格值
  • Wordpress在循环外获取ID
  • Typeahead.js和Json
  • WooCommerce中的订单状态错误
  • 升级后PHP没有运行
  • Wordpress和AngularJS设置
  • 电子邮件发送代码无效
  • 如何使用smarty / PHP创建表?
  • Bootstrap模态表单替换为JSON
  • Drupal Google跟踪代码管理器会破坏HTML
  • PHP声明编码会产生致命错误?
  • Yii - DB一次显示两列数据
  • 从html表单添加和删除元素的最佳方法
  • 试图将jQuery转换为原型... jQuery导致问题
  • 收到ajax post值后,Jquery更改无效
  • 在yii中更改所选项目时更改下拉列表的内容[关闭]

Copyright ©2022 我爱占星 All Rights Reserved.

浙ICP备2022030071号-1

部分图文来自网络,如有侵犯您的版权,请告诉我们删除

友情链接:代码精华