Find XML or RSS feed on a website

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
zimick7
Forum Newbie
Posts: 17
Joined: Mon Dec 06, 2004 2:11 pm

Find XML or RSS feed on a website

Post by zimick7 »

I am trying to write a script that attempts to find an XML or RSS feed on a website even if it is not linked from the main page. Is this even possible if the feed is not linked from a page?

A function similar to readdir would be helpful... does anyone know anyway that a directory can be read on a remote site?

Any thoughts or ideas would be appreciated.
Thanks!
User avatar
skehoe
Forum Commoner
Posts: 59
Joined: Sun Dec 22, 2002 5:57 am
Location: Denver

Post by skehoe »

If the site has a feed and wants it to be available, they will most likely have a file named index.xml accessable from their root web directory. (http://www.foo.com/index.xml)

~Scott
Post Reply