Coldfusion and PHP

Hi guys,

I really confuse about Coldfusion, just correct if i’m wrong. Is Coldfusion somewhat similar to PHP?

Just need some explanation guys.

Thanks,

However, CF is the best thing in structures but worst in hosting side, while PHP also best in some structures and frameworks, they also easy to find a hosting.

There are tons of CF hosts and most charge the same for CF as PHP or only a couple of dollars more. If you do have to pay more, it’s usually because your are also able to get MS SQL server as well.

And in most cases when you are comparing costs, it’s a $5.00 php plan vs a $15 plan with ASP, PHP, CF, MS SQL server and MySQL, dedicated address etc etc.

Check out gearhost.com and enterhost.com. I’ve used both for many years. You can get a CF enabled hosting account at godaddy.com for about $7/m.

Also as a comparison, yes both are programming languages and both have there pluses and minuses but for 90% of the code I write, the only difference is syntax.

I used to do php and ASP programming and switched to CF about 5 years ago after playing around with it for a while. Less code, much easier to debug and tasks like creating email, pds, scheduling tasks, reading/updating data are a piece of cake.

I use Dreamweaver for coding. You can also download CFEclipse - an open source IDE, or buy Coldfusion Builder.

This link may shed some light between the two… http://woork.blogspot.com/2007/11/coldfusion-vs-php-part-1.html

That is correct, it is difficult to find a host. The hard finding support is kind of a fishy statement… I would hoep the SP team would say they have a CF forum cause it is a viable language vs they have it to cover everything.

That’s all probably true if for no other reason then PHP is free and ColdFusion isn’t.

I still like CF better, even though I have been doing PHP longer.

In relation with this topic, I do some research about their hosting service, it says that:

"Coldfusion hosting is usually way too expensive and hard to find while php community is much bigger when you’re stuck on a problem the solution is usually easy to find. Not to mention bigger support of IDEs, frameworks and other stuff. "

Hi, don’t be afraid to try ColdFusion. I have been using it and I am a seasoned PHP developer. I develop in ColdFusion at work and PHP at home. ColdFusion is very cool and I was able to get good hosting with the Railo platform (open source).

OMG, PhP vs CF,
Both have their own merrits.
I prefer PhP as it is Open source s/w,easily available and to install. PhP has good future and also easy to write. Also, it can be easily integrated to DB.

Both have their own merrits.

They do but none of your points are sellers for choosing PHP.

I prefer PHP as it is Open source s/w,easily available and to install.

You’re correct that Adobe’s product - ColdFusion isn’t Open source but as mentioned just before your post, Railo is an Open Source CFML engine.

It can be run as a single installer or manually configured and pretty much works with any tag developed for Adobe’s CF. So use of CF online documentation and examples are pretty much transferable.

PhP has good future and also easy to write

Again same applies to ColdFusion. Maybe even more relevant on the writing side. A new release of Adobe ColdFusion, version 9, came out just recently and again with two OS CFML Engines in constant development things are looking pretty sweet for it just now.

I’d agree that the pool of Developers, resources, “out the box” applications is much larger than CF but that’s not to say the quality and range of ColdFusion applications is restricted in anyway.

Also, it can be easily integrated to DB.

Pretty much a done deal with any language these days and pretty weak as a selling point for using PHP. Just to say though that there is plenty of support in ColdFusion for all that and other sources of data - XML, RSS, Webservices, files etc. etc.

Cheers,
James

Yeah, I don’t know about that easy to write thing in regards to PHP. Maybe it’s a personal preference thing, but I find PHP a bit tedious.

Consider a snippet I wrote for my blog, to show older posts, grouped by year.

The PHP code I ended up with:


while($row = mysql_fetch_object($query)) {
                     $set[$row->postyear][] = $row->entry_name;
                     $ids[$row->postyear][] = $row->entry_id;
                     $dates[$row->postyear][] = $row->postdate;
                     }
              foreach ($set as $postyear => $rows) { 
                     echo "<h4>{$postyear}</h4>\
";
                     echo "<ul>";
              foreach ($rows as $key => $entry_name) {
                     echo "\
\	<li><a href=\\"index.php?entry={$ids[$postyear][$key]}\\" title=\\"Posted: {$dates[$postyear][$key]}\\">{$entry_name}</a></li>";
                     }
                     echo "\
</ul>\
"; 
              }

The same thing in CF:


<cfoutput group="postyear">
<h4>#postyear#</h4>
<ul>
<cfoutput><li><a href="index.php?entry=#entry_id#" title="Posted: #postdate#">#entry_name#</a></li></cfoutout>
</ul>
</cfoutput>

Maybe I’m the only one who thinks CF is easier to write.

I’m with all who are in favor of Coldfusion I personally find PHP a nightmare with all those echo’s, while’s and $'s. They make my heir stand up. Like mentioned before by Clarkee21 and Illustrated by cydewaze Coldfusion is way more straightforward and easier to read when it comes to the writing. OK maybe you have to pay for Coldfusion but i think that is for a good reason.

And that it is difficult to find a host is pure nonsense. There are enough host offering even dedicated Coldfusion packages. Again you have to pay for that as well, but you have to pay for all hosting isn’t it.

I was responding to http://www.sitepoint.com/forums/showthread.php?t=704583 but the forum suggested I created a new thread.

I am a Zend Certified Engineer in PHP 5.0, so with extensive experience in PHP and Coldfusion, I feel I can give an honest opinion. The reality though is, we could write books doing comparisons but as a ZCE, I personally think Coldfusion is a better language.

I, too, could go on forever doing a comparison but let me point out a few things. PHP is great, but Coldfusion is even better. Coldfusion saves Fortune 500 companies thousands in labor costs because you can develop faster in CF. The licensing pays for itself over and over again. But, PHP is free you say? I have been doing this a long time and it will take 25, 50% or longer to build an app in PHP over CF. Get two guys in PHP, and I can write the same app in Coldfusion by the time they are done. This coming from a ZCE remember.

CF was also light years ahead of PHP. Have you tried to thread in PHP today? Even with the new features in 5.3, you still can’t. Can you in CF, yup.

PHP 5.0 came out with trys and catches (error catching). Are you serious? I was using tries and catches years ago in CF.

What has happened today in my opinion, is Computer Science focus has shifted from mainframes, terminals and desktop applications to the Web. Now that purists in programming are moving to the web, the syntax of CF as tags is not so pure. PHP, having been built on C is ‘cool.’ But, CF is built with Java and you can even run Java code in CF scripts. Talk about power.

So, one of the reasons hard core programmers like PHP over CF is because tags are not pure and they don’t like some of the work being done for them as CF does. Just output a PDF in CF, two minutes. Do it in PHP, frig, it takes days! “What, who, me use CF? No way!” as I heard one guy put it.

Consultants also cannot bill as much using CF, although I think you can due to licensing costs. Their reasoning is you simply pump out Applications faster and cannot bill as much.

Anyway, just my thoughts. If I could find work in Coldfusion, as good as I am with PHP, I would still jump to CF in a heartbeat.

I have a business background although I work on the Web. I prefer to ‘Work Smart, Not Hard.’

And, I love Railo! The open source CF engine rocks.

I love Coldfusion.

PHP is very powerful as well.

To me Coldfusion is better because it’s easy to learn.

The only downside is that it’s very hard to find support because not many people use it whereas you’ll find massive support for PHP and free scripts all over the web.

I really wish Adobe put more effort into marketing Coldfusion. It really is a wonderful language to learn!

Omar

Try them both and judge for yourself. Personally CF is my go to scripting language of choice. I would recommend learning CF, simply for the time it takes to Get apps out the door.

I’ve built sites with C# .Net, Classic ASP, Java, .jsp (back in the day), Coldfusion, and PHP. And when it comes to getting things done quickly and efficiently, ColdFusion has always been on the top of my list.