2

Possible Duplicate:
How to display RSS feeds from other sites

What I want: I want a "news feed" on my website. This feed will display updated news from a news website. All I want is the title, date, and basic description of the last three "news posts" inside of a small scrollbox on my website.

What I can use: The news website I want to grab the news from has an RSS Feed ( http://www.wthr.com/category/23903/local-news?clienttype=rss ).

How do i do this?

Community
  • 1
  • 1
Brett Merrifield
  • 2,220
  • 6
  • 22
  • 21

3 Answers3

2

If you have url-file-access enable, just use

$result=file_get_contents("http://www.wthr.com/category/23903/local-news?clienttype=rss");

To get the content of the URL saved in $result All you have to do after is to parse the Data in $result.

stocker4all
  • 117
  • 3
1

Just add this widget to ypur page. https://www.rssinclude.com/

urmaul
  • 7,180
  • 1
  • 18
  • 13
1

You can use Google api for it. Please find url given below..

Google API for Rss Feed

Er. Anurag Jain
  • 1,780
  • 1
  • 11
  • 19
  • No matches for "rss" or "feed". You should teach the OP how to achieve this using PHP, not a third-party website. – Rodrigo Nov 11 '21 at 04:12