Jump to content

strange problem reading the json format


jeet_0077

Recommended Posts

Hi I am trying to read the contents of the following link:

 

$link = 'http://sports-ak.espn.go.com/broadband/espn360/upcomingEvents';

$content = file_get_contents($link);

$res = json_decode($content, true);

 

the link is returning json out put.

But when I use json_decode function its not returning anything.

 

Can you please tell me what went wrong.

Or can you  please suggest me what has to be done for that.

 

Thanks

 

Link to comment
https://forums.phpfreaks.com/topic/91150-strange-problem-reading-the-json-format/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.