Displaying RSS feed on web site using rss2html.php

Reply

Join Date: Sep 2004
Posts: 34
Reputation: TraderX is an unknown quantity at this point 
Solved Threads: 0
TraderX's Avatar
TraderX TraderX is offline Offline
Light Poster

Displaying RSS feed on web site using rss2html.php

 
0
  #1
Jun 16th, 2005
Hello all, first off, I am no PHP coder. I would like to display RSS feeds from other sites, to my index.php on my site. I found this script at http://www.feedforall.com/free-php-script.htm. It's a php script for this just that, but it displayes in the php file (rss2html.php) OR a .shtml page that you can create. It can be displayed in a .shtml page (using a server side include command in the table) by calling a template that is made in html (for format of layout) I would like to know "HOW" I can get it to post inside of my root index.php so I don't have to use .shtml

ANY help would be great, if you need more info please let me know
Coll
Reply With Quote Quick reply to this message  
Join Date: Jun 2005
Posts: 354
Reputation: Troy is an unknown quantity at this point 
Solved Threads: 5
Troy's Avatar
Troy Troy is offline Offline
Posting Whiz

Re: Displaying RSS feed on web site using rss2html.php

 
0
  #2
Jun 16th, 2005
I have not looked at that script, but you are saying that you can run rss2html.php and get the output that you want, but you want that output inside your own index page instead? You mention that your home page is already named index.php, so it's already a PHP script or at least ready to add script. Just try adding the entire rss2html script in your index.php page where you want the output. This is kind of a messy way to handle it, but will either work or help you start to see how to put it together.

So something like this:
[PHP]
<html>
<body>
This is my index.php page. It's full of lots of great content.
Here is where I want the rss feed to show.

<?php

#INSERT rss2html.php code here

?>

This is the rest of my index.php page.
</body>
</html>
[/PHP]

Let us know how it goes.
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:


Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC