Coldfusion to PHP?

I have recently accepted a position for a web developer

Unfortunately the company uses PHP for its front-end websites with C# DLLs behind it, I have used PHP many years ago when i started out in web development. But nowhere near using them tih DLLs.

What i really want to know is how hard will it be to take my knowledge from Coldfusion to PHP?

Any advice would be appreciated

Comments
ike's Gravatar Well the basics aren't going to change much - objects, functions, etc. All the things that are inherent in most "imperative programming" languages. The particulars will be all different though. If I remember correctly the syntax for addressing a structure is -> instead of . and I think that also holds true for object methods, although I'm not certain.

I'm probably not telling you anything you don't already know, but that's the gist of it anyway. It's nothing you don't already know. The only thing that will really change significantly will be the syntax and fiddly things like the fact that PHP won't allow you to have white-space before the body of the html document.

You're liable to really miss having cfquery handy. You'll probably be working with a lot of native functions named mysql_this() and mysql_that(). There is a mysql-specific equivalent of cfqueryparam though, which is good because I've had a few sql-injection attempts against http://www.woohooligan.com.

Oh and CreateUUID() is md5(uniqid(rand(), true)).
# Posted By ike | 13/12/08 18:26
Craig Kaminsky's Gravatar As Ike mentions, the main thing will be syntax. It's significantly more verbose for nearly all code than CFML. O'Reilly's "Programming PHP" 2nd Edition is an excellent and not too expensive resource.

The thing I dislike most about PHP compared to CF is DB access. It's just so easy in CFML and far, far more cumbersome (IMO) in PHP.

I often end up working in both PHP and ColdFusion and, far more than in CFML, I recommend learning a PHP framework. They make such a bigger difference in PHP than in CFML (and I think they make a huge impact in CFML). Recently, I started using CodeIgnitor as a PHP framework. I like it a lot. It's fast to pick up and follows the convention over configuration approach similar to ColdBox and Fusebox 5.5 (no XML). It's (CI) also very fast to compile and easy to pick up. I know you might not have that option (framework or choice thereof) in your new position but it's worth looking into (there's also a Fusebox for PHP, the Zend Framework is excellent and so is Cake).

Best of luck!
# Posted By Craig Kaminsky | 13/12/08 18:53
duncan's Gravatar The syntax and documentation are the big problems for me. Trying to get a handle on the hundreds of functions in PHP.

I recommend you download the PDF from this page, I've found it useful:
http://stores.lulu.com/ucffool
# Posted By duncan | 13/12/08 20:01
Jonny Shaw's Gravatar The framework i will be using is Zend, Has anyone used this?
# Posted By Jonny Shaw | 13/12/08 20:50
Rob Wilkerson's Gravatar You won't have any problems as long as you keep your mind open. I made the same move about 2 years ago. There will be an adjustment period, but it will be a syntax-only adjustment. The principles, concepts, techniques and constructs will be the same as those you're used to. This is particularly true if you've written any Java as part of your CF work.
# Posted By Rob Wilkerson | 13/12/08 23:55
psikoteknik's Gravatar Very nice blog.Thanks for the valuable contributions to this site. Have good works.
Thanks for your help
# Posted By psikoteknik | 31/12/08 15:55
Rob's Gravatar @duncan - thank you for that link. I am having to start learning PHP and having a guide locally will be of great help.

@jonny how has your transition been?
# Posted By Rob | 27/08/09 16:37
Jonny Shaw's Gravatar PHP is very similar to most other OOP languages, which i am quite familiar with, so it wasn't really a problem.
you just need to adjust to the syntax and learn the functions.
# Posted By Jonny Shaw | 28/08/09 08:59
mbt shoes's Gravatar Let us crazy mbt shoes , [url=http://www.mbtshoes2sale.com ] mbt shoes sale[/url] of our most popular,you can find the best

prices MBT shoes for sell from us .
[url=http://www.mbtshoes2sale.com ] mbt shoes[/url] have been specially designed by physiologists to offer a natural

uneven,All mbt shoes wiht big discount were free shipping and not any tax from now on.
Enjoy the lastest [url=http://www.mbtshoes2sale.com ] discount mbt shoes[/url].
Welcome to order [url=http://www.kissmbtshoes.com ] mbt shoes[/url].
The [url=http://www.brandshoes2trade.com ] nike running shoes[/url] are well received around the world .
-----------------------------------------------------------------------------------------------------------------
[url=http://www.b2chandbag.com/loewe-handbags-c-26/ ]loewe handbags[/url] is made with superior craftsmanship which is so

well loved by all handbag fans.Get yourself sparking with [url=http://www.b2chandbag.com/loewe-handbags-c-26/ ]loewe bags

[/url].welcome to enjoy loewe handbags for free shipping.top quality loewe bags for discerning ladies.discount and

[url=http://www.b2chandbag.com/loewe-handbags-c-26/ ] cheap loewe handbags on line[/url].
[url=http://www.b2chandbag.com/ ]prada handbags[/url] is an italian fashion label specializing in luxury goods for men and

women.Welcome to enjoy designer and discount prada bags sale.cheap and model [url=http://www.b2chandbag.com/ ]prada bags

[/url] for free shipping.
Beautify your personal style with [url=http://www.b2chandbag.com/balenciaga-handbags-c-1/" target="_blank">http://www.b2chandbag.com/balenciaga-handbags-c-1/... ]balenciaga handbags

[/url].b2chandbag designer handbag shop offer high quality Balenciaga bags.Shop popular brands and stores to find
[url=http://www.b2chandbag.com/balenciaga-handbags-c-1/" target="_blank">http://www.b2chandbag.com/balenciaga-handbags-c-1/... ]balenciaga bags[/url].top quality of balenciaga handbags for

discerning ladies.welcome to enjoy balenciaga handbags sale.cheap and [url=http://www.b2chandbag.com/balenciaga-handbags-c

-1/ ] discount balenciaga handbags sale[/url].
# Posted By mbt shoes | 31/07/10 09:29
ffdd's Gravatar I stared<a href="http://www.lubattery.com">Toshiba laptop battery</a> at the organic wrapper and<a href="http://www.lubattery.com">Dell laptop battery</a> thought to myself that it really wasn'<a href="http://www.lubattery.com">Ibm laptop battery</a> t that beautiful, but I have learned<a href="http://www.lubattery.com/Compaq-Acer-Sony.html&quo... laptop battery</a> never<a href="http://www.lubattery.com/Compaq-Acer-Sony.html&quo... laptop battery</a> to appear<a href="http://www.lubattery.com/Lenovo-Hp-LG.html"&g... laptop battery</a> nonchalant<a href="http://www.lubattery.com/Lenovo-Hp-LG.html"&g... laptop battery</a>or jaded<a href="http://www.lubattery.com/Apple-HP-Compaq.html"... laptop battery</a> with children<a href="http://www.lubattery.com/Apple-HP-Compaq.html"... Pavilion battery</a>. <a href="http://www.lubattery.com/Ibm-Apple-Acer.html"... macbook battery</a> they see for<a href="http://www.lubattery.com/Ibm-Apple-Acer.html"... thinkpad battery</a> the first time<a href="http://www.lubattery.com/Toshiba-Acer-HP.html"... travelmate battery</a> is ely<a href="http://www.lubattery.com/Toshiba-Acer-HP.html"... satellite battery</a> to their?
# Posted By ffdd | 31/07/10 10:38
timberland shoe company's Gravatar We are traveling by train. Out timberland hiking boots windows, we drink in the passing scene of cars on nearby highways, of children timberland shoe company waving at a crossing, of cattle grazing on a distant timberland boots hillside, of smoke pouring from a power plant, of row upon row of corn and wheat, of flatlands and timberland wheat shoes valleys, of mountains and rolling classic 3 eye timberland boat hillsides, of city skylines and village halls.But uppermost in our black timberland boots minds is the final destination.
# Posted By timberland shoe company | 28/08/10 07:44

Archives By Subject

Advertising (4) [RSS]
Blog Design (1) [RSS]
CFProject Scripts (2) [RSS]
Coldfusion Charts (3) [RSS]
Coldfusion Functions (5) [RSS]
Coldfusion Overview (1) [RSS]
Coldfusion Tutorials (16) [RSS]
For Sale (2) [RSS]
Image Manipulation (1) [RSS]
Java (1) [RSS]
JavaScript (4) [RSS]
PHP (1) [RSS]
Railo (4) [RSS]
SQL (1) [RSS]
Useful Tools (3) [RSS]

Recent Comments

Coldfusion and Java
nike air max shoes said: Free shipping buy coach handbags in coach outlet online,save up 76%,[url=http://www.coachhandbags-...... [More]

Coldfusion and Java
coach handbags said: These four pairs are all from Sergio Rossi. And their color is all can match well with your wedding ... [More]

Select Last Number In Access
coach handbags said: These four pairs are all from Sergio Rossi. And their color is all can match well with your wedding ... [More]

Select Last Number In Access
nike air max shoes said: Free shipping buy coach handbags in coach outlet online,save up 76%,[url=http://www.coachhandbags-...... [More]

Unlimited Website Hosting
nike air max shoes said: Free shipping buy coach handbags in coach outlet online,save up 76%,[url=http://www.coachhandbags-...... [More]

Recent Entries

No recent entries.
ColdFusion Blog | ColdFusion Hosting | ColdFusion Q & A