SitePoint Sponsor

User Tag List

Results 1 to 3 of 3
  1. #1
    SitePoint Guru
    Join Date
    Jun 2001
    Location
    Australia
    Posts
    676
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    xml feed and magierss

    Hi guys, Im in need of getting the image <enews:image> from the eonline feeds but not sure how to go about getting them. Any suggestions?

    PHP Code:
    $url "http://www.eonline.com/syndication/feeds/rssfeeds/topstories.xml";
    $rss fetch_rss($url);
    echo 
    "<font size='4' face='Verdana'><b>" $rss->channel['title'] . "</b></font>";
    foreach (
    $rss->items as $item) {
    $href $item['link'];
    $title $item['title'];
    $des $item['description'];
    echo 
    "<a href='$href' target='_blank'><b>$title</b></a><br>
    $des";


  2. #2
    Sell crazy someplace else markl999's Avatar
    Join Date
    Aug 2003
    Location
    Manchester, UK
    Posts
    4,007
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    $item['enews']['image_url']; will contain the img link.

  3. #3
    SitePoint Guru
    Join Date
    Jun 2001
    Location
    Australia
    Posts
    676
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thanks Mark, thats awesome.


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •