Forum Moderators: open
Here is an RSS feed:
<snip>
Can you tell me how to display this feed on my regular website. I can see .xml codes for this feed but how do I display the feed on a pape on a server?
Thanks for your help.
[edited by: werty at 8:16 pm (utc) on April 26, 2005]
[edit reason] Removed URL [/edit]
You can go with a javascript version which is really easy, but requires the user to have javascript turned on, and the content will not be crawled/index by the search engines.
The second method is to use a php or asp solution that will
parse the files for you. This thread contains some links to various RSS parsers: [webmasterworld.com...]
Also this thread contains a link to an excellent tutorial on RSS feeds: [webmasterworld.com...]
The links seem helpful. I have looked into several RSS files and I see the XML codes in them. I've spent some time trying to compare and understand what these codes mean and how I can scrap them myself.
The question is how do I use PhP to display the feed on my website?
Suppose I have a RSS file like "myfeed.xml" and I have a Php file like "myfeed.php". Assuming that both files are in the same directory of the web server. What will the "myfeed.php" file codes be? What if I have "myfeed1.xml" and "myfeed2.xml"?
<?php
//something here to display the feed(s)
}
?>