开发者

Is ColdFusion compiled?

开发者 https://www.devze.com 2023-03-22 01:34 出处:网络
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

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 ne开发者_运维问答ed 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.


Yes, it is compiled.

http://livedocs.adobe.com/coldfusion/8/htmldocs/help.html?content=deploying_1.html


Remember if you have template caching on you may need to turn that off then back on after making code changes. Same as preserve the .class files

In the CFamin they look like this:

Trusted cache When checked, any requested files found to currently reside in the template cache will not be inspected for potential updates. For sites where templates are not updated during the life of the server, this minimizes file system overhead. This setting does not require restarting the server.

Save class files When you select this option, the class files generated by ColdFusion are saved to disk for reuse after the server restarts. Adobe recommends this for production systems. During development, Adobe recommends that you do not select this option.

0

精彩评论

暂无评论...
验证码 换一张
取 消