Hi all:
I have a site that I’m working on and our old developer did everthing in ColdFusion. I don’t know ColdFusion and I have a snippet of ColdFusion code that I need converted to PHP. It’s a feed coming from CNN.com. Here is the current code:
<cfhttp url="http://topics.cnn.com/topics/feeds/rss/business_travel" method="GET" resolveurl="No">
</cfhttp>
<cfset industry_news_xml=XMLParse(cfhttp.FileContent)>
<cfoutput>
<cfloop index="x" from="1" to="4">
<p><strong>#industry_news_xml.rss.channel.item[x].title.xmlText#</strong><br />
#Left(industry_news_xml.rss.channel.item[x].description.xmlText, 75)#...<a href="#industry_news_xml.rss.channel.item[x].link.xmlText#" target="_blank" class="more">READ MORE >></a></p><hr size="1" noshade="noshade" />
</cfloop>
</cfoutput>
If any of you might now how to convert this to PHP, I’d appreciate it. Thanks!
JPearson311