使用PHP从URI获取JSON数据而不使用cURL

Mar*_*rty 0 php json

所以,我有一台带有PHP的IIS机器,我需要从以JSON格式返回的URI中获取数据,即:

http://finance.google.com/finance/info?client=ig&q=NYSE:GOOG

诀窍是,我不能使用cURL来做到这一点.有没有办法做到这一点,以便我有一个var,然后我可以使用json_decode()?

Qwe*_*rty 6

$data = file_get_contents('http://finance.google.com/finance/info?client=ig&q=NYSE:GOOG')
Run Code Online (Sandbox Code Playgroud)