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 Quote Link to comment 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. Quote Link to comment 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 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.