?
Solved

PHP vs Coldfusion

Posted on 2009-04-11
6
Medium Priority
?
231 Views
Last Modified: 2013-12-24
I have a client that has a website they would like re-designed.  Some of the site is built using coldfusion.  From what I have researched coldfusion looks a lot like php in what it does.  Are there benefits to coldfusion?  I could re-write the site to use php but I wondered if it would be worth learning coldfusion instead.
0
Comment
Question by:brightsusan
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 2
6 Comments
 
LVL 111

Expert Comment

by:Ray Paseur
ID: 24123576
No, it would not be worth learning CF instead.

Now having made that bold assertion, I'll try to explain why...
0
 
LVL 111

Accepted Solution

by:
Ray Paseur earned 2000 total points
ID: 24123614
The number of PHP web sites is growing by leaps and bounds over the number of CF sites.  This is largely because PHP is free and easy to use, whereas CF is not free (server software costs $$) and somewhat arcane.  PHP is open source.  That alone is worth a lot.

I would call CF a "framework" whereas PHP is more of a programming language.  Certain frameworks are implemented in PHP, notably Joomla, Drupal and WordPress.

Either PHP or CF can be used to build dynamic data-base backed web sites.  Some notable PHP sites include Yahoo, Facebook and Digg.  The popularity of these sites means that there is a lot of great research being done on high-performance and security in PHP.

If you want to find easy access to expertise, PHP is very popular and there will be lots of knowledgeable people around.  Less so with CF.  If you have not yet done so, look at the user-contributed notes in the PHP online documentation.  You con find them at the bottom of every function page.  Example... http://us3.php.net/manual/en/function.strtotime.php

And speaking of popularity, have a look at this:
http://www.tiobe.com/index.php/content/paperinfo/tpci/index.html

So overall, my guess is that you are better off converting it to PHP unless you are already fluent in CF.  "When you have a hammer, everything looks like a nail" and "When you have PHP, every problem has a solution with PHP"

Best regards, ~Ray
0
 
LVL 111

Expert Comment

by:Ray Paseur
ID: 24123766
0
Percona Live Europe 2017 | Sep 25 - 27, 2017

The Percona Live Open Source Database Conference Europe 2017 is the premier event for the diverse and active European open source database community, as well as businesses that develop and use open source database software.

 
LVL 16

Expert Comment

by:duncancumming
ID: 24124876
Although this question is now closed, I'd like to make a reply to some of Ray's points.  

"CF is not free"
There are several diffferent versions of Coldfusion Server.  The one from Adobe isn't free.  There are three free open source versions.  The main two to consider are Railo and OpenBlueDragon.  However given that your client's site is already in Coldfusion, I guess you've already either got CF Server in place, or are using a hosting company that does.  So that shouldn't be a factor unless you want to move your client's site to your own server.

"somewhat arcane"
Not sure what that means, can you give an example?  

I would call CF a "framework"
ColdFusion is a web application server; CFML is a language.  CF is not a framework.  There are frameworks available for CF just as there are for PHP.

there will be lots of knowledgeable people around.  Less so with CF.
This is true.

What would be ideal I think is if you could leave the Coldfusion bits as they are, and any future work you do in PHP.  If you're familiar with PHP you may feel you should rewrite all Coldfusion to PHP; however I believe this would be a time consuming exercise without lots of benefit.  I guess the code would be easier for you to maintain and change later, although this could depend on how fluent you are in PHP, how easy you find to convert one language to another, and how difficult you find Coldfusion to understand.  

Alternatively you may want to try and learn Coldfusion and build on that rather than use PHP.  As a web developer, the more languages you know the better it is for you.  Both for your CV and also for your own knowledge and understanding.

Coldfusion certainly does have plenty of benefits.  Time to develop anything will usually be quicker than in PHP, ASP, JSP.  Although in those other languages you may be using a framework that does the equivalent for you.
Coldfusion uses Java in the backend, so you can always dip into Java to do something you can't do in CFML.
Even though there are much less CF developers than PHP, it is still widely used.  
CF can do some interesting things that other languages may struggle with, e.g. dynamic PDF creation, integrating with MS Exchange, good integration with Flex and Air.  CF server can even run PHP pages!
You may want to read some of the features available here:
http://en.wikipedia.org/wiki/Coldfusion#Main_Features
0
 

Author Comment

by:brightsusan
ID: 24127665
How difficult is Coldfusion to learn.  I am a quick learner and would like to gain more experience.  
0
 
LVL 16

Expert Comment

by:duncancumming
ID: 24128209
Personally I'd say it's easy to learn.  The syntax of CFML is very similar to HTML syntax, i.e. tags with attributes.  If you're not comfortable with that, you can also use CFScript syntax, which is more like the C++ style you'll be familiar with from PHP.  


0

Featured Post

Limited time offer using promo code EXPERTS30

Designed with a wealth of functionality and convenience, ATEN's new Thunderbolt™ 2 Sharing Switch takes your Thunderbolt setup to the next level. Now through September 15, 2017, Experts Exchange members get 30% off the US7220 on the ATEN USA eShop using promo code EXPERTS30.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction This article is intended for those who are new to PHP error handling (https://www.experts-exchange.com/articles/11769/And-by-the-way-I-am-New-to-PHP.html).  It addresses one of the most common problems that plague beginning PHP develop…
3 proven steps to speed up Magento powered sites. The article focus is on optimizing time to first byte (TTFB), full page caching and configuring server for optimal performance.
The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.
The viewer will learn how to create and use a small PHP class to apply a watermark to an image. This video shows the viewer the setup for the PHP watermark as well as important coding language. Continue to Part 2 to learn the core code used in creat…
Suggested Courses

752 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question