conware
11-24-2011, 07:38 PM
Hi guys I was trying to get my latest youtube video info with json.
Only I have run into a problem i'm not really sure how I can echo it out.
Everytime I try I get the following error message.
Catchable fatal error: Object of class stdClass could not be converted to string
Here is my php code:
<?php
$jsonurl = 'http://gdata.youtube.com/feeds/base/users/NintendoWizard22/uploads?alt=json&v=2';
$json = file_get_contents($jsonurl, 0, null, null);
$json_output = json_decode($json);
$item = $json_output->feed->entry;
foreach ($item as $row) {
echo $row->title;
}
?>
Only I have run into a problem i'm not really sure how I can echo it out.
Everytime I try I get the following error message.
Catchable fatal error: Object of class stdClass could not be converted to string
Here is my php code:
<?php
$jsonurl = 'http://gdata.youtube.com/feeds/base/users/NintendoWizard22/uploads?alt=json&v=2';
$json = file_get_contents($jsonurl, 0, null, null);
$json_output = json_decode($json);
$item = $json_output->feed->entry;
foreach ($item as $row) {
echo $row->title;
}
?>