Jump to content

bigt95nt0110

Members
  • Content Count

    5
  • Joined

  • Last visited

Community Reputation

0 Neutral

About bigt95nt0110

  • Rank
    Newbie
  1. Below is the full code I'm running. <?phpinclude_once('../autoloader.php');ini_set('display_errors', 1);error_reporting(E_ALL);$feed = new SimplePie();$feed->set_feed_url('http://simplepie.org/blog/feed/');$feed->init();$feed->handle_content_type();foreach ($feed->get_items() as $item){ foreach ($item->get_enclosures() as $enclosure) { echo $enclosure->embed(); echo "here<br>" }}?> The loop executes for each $enclosure but no output but "here"
  2. Below is a snipit of code that I got from SimplePie that is suppose to parse an enclosure for it's contents, but when I run it I get a blank page. I know that the feed has enclosure tags present. What am I missing? $feed = new SimplePie();$feed->set_feed_url('http://simplepie.org/blog/feed/');$feed->init();$feed->handle_content_type();foreach ($feed->get_items() as $item){ foreach ($item->get_enclosures() as $enclosure) { echo $enclosure->embed(); }}
  3. below is an enclosure tag from craigslist RSS feed. Can anyone tell me what the "enc:" in the tag means <enc:enclosure resource="http://images.craigslist.org/00Y0Y_kZI4M6ZKl0o_300x300.jpg" type="image/jpeg"/>
×
×
  • Create New...