User Name Password Register
DaniWeb IT Discussion Community
All
What is DaniWeb IT Discussion Community?
You're currently browsing the RSS, Web Services and SOAP section within the Web Development category of DaniWeb, a massive community of 360,990 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 2,644 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our RSS, Web Services and SOAP advertiser:
Views: 2669 | Replies: 1
Reply
Join Date: Dec 2004
Posts: 34
Reputation: Kwak is an unknown quantity at this point 
Rep Power: 4
Solved Threads: 0
Kwak Kwak is offline Offline
Light Poster

How exactly do you implement your RSS to your own site?

  #1  
Nov 24th, 2005
Hello there,

After a search on google, I still could not find the answer to this simple question.


How do you add your blog rss to your own frontpage? The site is all .php.
I have no clue on how to make your rss entries show up on the frontpage inside a table.

Little guidance? Thanks in advance.
AddThis Social Bookmark Button
Reply With Quote  
Join Date: Feb 2002
Location: Lawn Guylen, NY
Posts: 10,857
Reputation: cscgal is just really nice cscgal is just really nice cscgal is just really nice cscgal is just really nice cscgal is just really nice 
Rep Power: 32
Solved Threads: 106
Admin
Staff Writer
cscgal's Avatar
cscgal cscgal is online now Online
The Queen of DaniWeb

Re: How exactly do you implement your RSS to your own site?

  #2  
Nov 24th, 2005
Let me make sure I understand your question corectly. You have an RSS feed and you want to syndicate this feed on your PHP-driven site?

What you will need is a PHP-based RSS parser. A relaly good, and really powerful one, that I love is called MagpieRSS - http://magpierss.sourceforge.net

It has lots of options but don't let that overwhelm you. Read the FAQ and you will see that it only takes a couple of lines and for you to upload the magpierss folder.

Here is a very basic example:

[php]
require_once('magpierss/rss_fetch.inc');
$url = "path/to/rss/feed.rss";
$rss = fetch_rss($url);
echo "<ul>";
foreach ($rss->items AS $item)
{
$title = $item['title'];
$link = $item['link'];
echo "<li><a href=\"$link\">$title</a></li>";
}
echo "</ul>";
?>
[/php]
Reply With Quote  
Reply

Only community members can participate in forum threads. You must register or log in to contribute.

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 

DaniWeb RSS, Web Services and SOAP Marketplace
Thread Tools Display Modes

Similar Threads
Other Threads in the RSS, Web Services and SOAP Forum

All times are GMT -4. The time now is 6:19 pm.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC