dcsimg
www.webdeveloper.com
Results 1 to 2 of 2

Thread: Use PHP to extract RSS data

  1. #1
    Join Date
    Jun 2010
    Posts
    2

    Use PHP to extract RSS data

    I'm hoping someone could help me with this...

    Goal - use RSS feed from sharepoint to be displayed on scrolling ticker

    http://www.mioplanet.com/rsc/newsticker_javascript.htm

    I've tried to use the above link to create, and it recommends using php to covert the rss feed to a single line for display.

    The xml rss feed source from sharepoint has the 3 latest feeds in the format

    <item>
    <title>Test</title>
    <link>/Lists/demo1/DispForm.aspx?ID=2</link>
    <description><![CDATA[]]></description>
    <author>test</author>
    <pubDate>Mon, 07 Jun 2010 18:15:46 GMT</pubDate>
    <guid isPermaLink="true">Lists/demo1/DispForm.aspx?ID=2</guid>
    </item>

    The only things I want to extract and display are the Title and the pubDATE and have them both as a hyperlink to the link tag.

    Worst case no ticker, and just a simple box with the last 3 rss posts with just the title and date...

    Not really sure how to go about doing this, hoping someone could point me in the right direction.

    Thanks

  2. #2
    Join Date
    Aug 2004
    Location
    Ankh-Morpork
    Posts
    19,637
    You could use a 3rd party RSS reader script, such as Magpie. (I'm not claiming it's the best, just a name I remember hearing other people refer to.) If you want to do it yourself, you probably want to look at the SimpleXML extension.
    "Please give us a simple answer, so that we don't have to think, because if we think, we might find answers that don't fit the way we want the world to be."
    ~ Terry Pratchett in Nation

    eBookworm.us

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

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



Recent Articles