Get file content from URL?

后端 未结 5 1981
逝去的感伤
逝去的感伤 2020-11-28 06:21

When I use following URL in browser then it prompt me to download a text file with JSOn content.

https://chart.googleapis.com/chart?cht=p3&chs=250x100&chd=t:

5条回答
  •  北荒
    北荒 (楼主)
    2020-11-28 07:20

    Use file_get_contents in combination with json_decode and echo.

提交回复
热议问题