Jump to content

catchable fatal error ?


salman_ahad@yahoo.com

Recommended Posts

 

I am trying to retrieve information from this JSON API, getting this error

 

Catchable fatal error: Object of class stdClass could not be converted to string

 

My code

 

$json   = file_get_contents('http://api.tweetmeme.com/url_info.json?url=http://is.gd/lznv');
   $data   = json_decode($json);
   echo $data;

Link to comment
https://forums.phpfreaks.com/topic/184138-catchable-fatal-error/
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.