I tried the print command on my page to retreive the rss from it, but it doesn't seem to work: <?php PRINT"domain.com/rss.xml"; ?> Is there anything I can do to retireve my RSS feeds on my php or html pages.
It shows XML RSS source "as is". You need to parse XML and show and format data if you want to display it "user-friendly".
Or, you need to set your content type... default will be html, which is no good if you're outputting RSS: header("Content-Type: application/rss+xml"); PHP: Cryo.
Use google, there are many examples and ready scripts to do that. Depending on version PHP has different sets of functions for dealing with XML: http://www.php.net/xml http://php.net/simplexml 3d party libraries: PEAR, magpieRSS, etc. Just an easy google search results: RSS parsing using PEAR http://www.spoono.com/php/tutorials/tutorial.php?url=pear Parsing RSS 1.0 http://www.sitepoint.com/article/php-xml-parsing-rss-1-0 Parsing XML With PHP http://www.wirelessdevnet.com/channels/wap/features/xmlcast_php.html Ready-to-use solution: http://www.googlerank.com/randomizing-for-ranking/random-rss-xml-feed-php.html
Depending on the purpose setting it as text/xml sometimes works better. header('Content-type: text/xml'); PHP: