Jump to content

get site RSS feed url?


ohdang888

Recommended Posts

almost all blog systems have this in the document head to specificy the url of the rss feed:

 

<link rel="alternate" type="application/rss+xml" title="Blog Title" href="http://www.example.com/url/to/rss/feed/" />

 

 

How can i get the title and href attributes from the link tag with rel="alternate"and  type="application/rss+xml"?

 

Thanks

 

Link to comment
https://forums.phpfreaks.com/topic/203047-get-site-rss-feed-url/
Share on other sites

Do you want to use regex, or would you be open to other (arguably more "correct") ways of parsing HTML content?  What have you tried already? How/why are you doing this; are you loading the whole page; a remote page?

 

Sorry for all the questions, just answers to those will likely alter our suggestions for how you approach this.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.