RSS Forums RSS
Please support our PHP advertiser: Lunarpages PHP Web Hosting
Views: 2649 | Replies: 1
Reply
Join Date: Sep 2004
Posts: 34
Reputation: TraderX is an unknown quantity at this point 
Rep Power: 5
Solved Threads: 0
TraderX's Avatar
TraderX TraderX is offline Offline
Light Poster

Displaying RSS feed on web site using rss2html.php

  #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
AddThis Social Bookmark Button
Reply With Quote  
Join Date: Jun 2005
Location: Kansas City, Missouri, USA
Posts: 345
Reputation: Troy is an unknown quantity at this point 
Rep Power: 4
Solved Threads: 4
Troy's Avatar
Troy Troy is offline Offline
Posting Whiz

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

  #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  
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)

 

Thread Tools Display Modes
Forums | Blogs | Tutorials | Code Snippets | Whitepapers | RSS Feeds | Advertising
All times are GMT -4. The time now is 11:52 am.
Newsletter Archive - Sitemap - Privacy Statement - Acceptable Use Policy - Contact Us
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC