ohdang888 Posted May 27, 2010 Share Posted May 27, 2010 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 More sharing options...
salathe Posted May 27, 2010 Share Posted May 27, 2010 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. Link to comment https://forums.phpfreaks.com/topic/203047-get-site-rss-feed-url/#findComment-1063986 Share on other sites More sharing options...
ohdang888 Posted May 27, 2010 Author Share Posted May 27, 2010 i think i may have just gotten it. file_get_contents with A DOM class Link to comment https://forums.phpfreaks.com/topic/203047-get-site-rss-feed-url/#findComment-1064140 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.