芝麻web文件管理V1.00
编辑当前文件:/home/mgatv524/public_html/insta/rss.php
', true); //$html = substr($html,0,-6); $html = substr($html, 0, -1); $data = json_decode($html); // print_r($data->entry_data->ProfilePage[0]->user->media->nodes); $rss_feed = '
'; $rss_feed .= '
'.$_GET['user'].'\'s Instagram Feed
http://instagram.com/'.$_GET['user'].'
'.$_GET['user'].'\'s Instagram Feed
'; foreach($data->entry_data->ProfilePage[0]->user->media->nodes as $node) { $rss_feed .= '
'; if(isset($node->caption) && $node->caption != '') { $rss_feed .= htmlspecialchars($node->caption, ENT_QUOTES, ENT_HTML5); } else { $rss_feed .= 'photo'; } // pubdate format could also be: "D, d M Y H:i:s T" $rss_feed .= '
https://instagram.com/p/'.$node->code.'/
'.date("r", $node->date).'
display_src.'" />]]>
https://instagram.com/p/'.$node->code.'/
'; } // foreach "node" (photo) $rss_feed .= '
'; echo $rss_feed; ?>