LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 10-29-2006, 05:07 AM   #1
//////
Member
 
Registered: Nov 2005
Location: Land of Linux :: Finland
Distribution: Arch Linux && OpenBSD 7.4 && Pop!_OS && Kali && Qubes-Os
Posts: 824

Rep: Reputation: 350Reputation: 350Reputation: 350Reputation: 350
Adding Site:x's RSS feed to my homepage.


Hello forum people.

I am making my (first)homepage (ISP "sponsored") and I was wondering if it is possible to get for example..
Code:
"http://today.reuters.com/rss/topNews"
.. to show up as a links(headlines) in my homepage, I obviously dont want "hardcoded" links.
What I would like to see in my homepage is links to the reuters news that are updated when RSS feed is updated.

I did some googling but I could not find solution for this one, all I did find was "adding RSS feed to google/yahoo/xxx/yyy homepage.

Question 1: So is this possible or am I asking too much ?
Question 2: Is this kind of content "leeching" ok ? This is just personal homepage with collection of bookmarked sites and other content that I'm intrested of.

TIA

////

Update: Ok, I think I found solution for my prob = RSS2HTML.

Last edited by //////; 10-29-2006 at 06:20 AM.
 
Old 10-31-2006, 06:21 AM   #2
senyahnoj
Member
 
Registered: Jul 2004
Location: Gloucestershire, UK
Distribution: Ubuntu, Debian & Gentoo
Posts: 74

Rep: Reputation: 16
I don't know what your ISP has provided but if you have access to PHP on your server, the PEAR XML_RSS class is installed and php.ini (PHP config file on the server) has got 'allow_url_fopen = On' the code is pretty simple.

PHP Code:
require "XML/RSS.php";

$feed "http://today.reuters.com/rss/topNews";

$rss =& new XML_RSS($feed);
$rss->parse();

print(
"<ul>\n");
foreach(
$rss->getItems() as $item)
   {
   
printf("<li><a href=\"%s\">%s</a></li>\n",
         
$item['link'],$item['title']);
   }
print(
"</ul>\n"); 
 
Old 10-31-2006, 08:39 AM   #3
//////
Member
 
Registered: Nov 2005
Location: Land of Linux :: Finland
Distribution: Arch Linux && OpenBSD 7.4 && Pop!_OS && Kali && Qubes-Os
Posts: 824

Original Poster
Rep: Reputation: 350Reputation: 350Reputation: 350Reputation: 350
Hi, that script didn't work, my ISP provides PHP in safemode and it does not have PEAR XML_RSS class.

But anyway thanks for reply.

I managed to get it work with..
http://www.feedforall.com/free-php-script.htm
..this script.

Cheers

////

Last edited by //////; 10-31-2006 at 08:41 AM.
 
  


Reply

Tags
embed, rss



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LQ js.php rss feed slackhack LQ Suggestions & Feedback 3 12-05-2005 01:01 PM
Having problem with an RSS feed. Nebetsu Programming 7 09-25-2005 05:31 PM
Zero Posts RSS Feed Matir LQ Suggestions & Feedback 11 09-09-2005 07:24 AM
memory types - what's what: vm resident shared rss X's jonaskoelker Linux - Software 2 05-26-2005 04:59 AM
RSS feed. paul_dundee Linux - Software 2 03-18-2005 03:46 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 05:35 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration