simplepie

Can SimplePie grab images from feeds

限于喜欢 提交于 2019-11-30 07:42:31
问题 I am using this simplepie and i have uploaded the files to my host. Everything seems to be working fine except one thing. The blog that i'm getting the feed from has images in it, and when i use the simplepie to view the feed, the images don't show up. Is there a way to get the images to show up when i view the blog with simplepie? Okay i am sorry, i am new at this. I am just using the code straight from the website to try and view the blog. i will put the code at the bottom here. So yea like

Getting deprecated error with Simplepie

痴心易碎 提交于 2019-11-29 15:40:40
I have installed the latest Simplepie code (1.2.1) and I am using the demo code they provide: <?php require 'simplepie.inc'; $url = 'http://news.google.com/news?ned=us&topic=h&output=rss'; $feed = new SimplePie(); $feed->set_feed_url($url); $feed->init(); // default starting item $start = 0; // default number of items to display. 0 = all $length = 0; // if single item, set start to item number and length to 1 if(isset($_GET['item'])) { $start = $_GET['item']; $length = 1; } // set item link to script uri $link = $_SERVER['REQUEST_URI']; // loop through items foreach($feed->get_items($start,