I have a client wanting a 3rd party, lead gen popup script installed in a few of her sites. One of which is built in ColdFusion, which I’ve never even looked at before. I’m wondering is dropping the code into a .cfm file as easy as dropping it into a PHP file? Can I just open the right file in a text editor, drop the code in and all is ok? Or do I need to use adobe product and recompile or anything like that?
Thanks.
It is just that easy, but in the same way that you have to have PHP running on the server in order for the .php file to be processed, you need ColdFusion running on the server in order for the .cfm file to be processed.
You don’t compile the .cfm file yourself. You just save time.cfm as:
<cfoutput>#now()#</cfoutput>… upload it to the server, and open http://domain/time.cfm
If you change it to be prettier (in any text editor or IDE):
<cfoutput>#dateFormat( now(), 'mm/dd/yyyy' )#</cfoutput>…save the file, upload it, and refresh the page in the browser. You don’t have to manually compile or recompile anything.