- Jul 21, 2001
- 21,058
- 3
- 0
i'm trying to figure this out myself, but i'm stuck
what i'm trying to do is take an rss feed and extract just the image and URL. here's an example feed:
http://sports.yahoo.com/nba/teams/lal/photos/rss.xml
the description tag has a link to the jpg, link to a full sized version, and a rather long comment. i'm trying to use the preg_replace() php function to extract everything between the <a href></a> tags, which should give me the pic and link to the full sized version. can anyone help me?
what i'm trying to do is take an rss feed and extract just the image and URL. here's an example feed:
http://sports.yahoo.com/nba/teams/lal/photos/rss.xml
the description tag has a link to the jpg, link to a full sized version, and a rather long comment. i'm trying to use the preg_replace() php function to extract everything between the <a href></a> tags, which should give me the pic and link to the full sized version. can anyone help me?