# ColdFusion to PHP

**URL:** <https://forum.kirupa.com/t/coldfusion-to-php/278406>\
**Category:** programming\
**Created:** [December 29, 2008, 4:30pm UTC](https://forum.kirupa.com/t/coldfusion-to-php/278406 "2008-12-29T16:30:49Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![jpearson311](https://avatars.discourse-cdn.com/v4/letter/j/977dab/32.png) [@jpearson311](https://forum.kirupa.com/u/jpearson311)\
**Post date:** [December 29, 2008, 4:30pm UTC](https://forum.kirupa.com/t/coldfusion-to-php/278406/1 "2008-12-29T16:30:49Z")

</div>

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](http://CNN.com). Here is the current code:

```auto

<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
