CF 代码可以在常规服务器上运行吗?

发布于 2024-09-04 03:43:25 字数 200 浏览 1 评论 0原文

我的任务是将 CF 代码(大约 70 行)集成到我们的站点中,然后将其配置为与另一个站点的服务器进行通信。然而,我们的托管站点只是一个典型的服务器,没有 CF 支持。代码会运行吗?我只知道CF是Adobe版本的PHP和ASP。我没有编码经验。您能赐教一下吗?根据我从互联网上收集到的信息,你必须有一个 CF 服务器才能运行 CF 代码,但资源似乎很稀缺。我只是需要有知识的人来验证...

I am tasked to integrate a CF code(about 70 lines) into our site then configure it to communicate to another site's server. However, our hosting site is just a typical server without CF support. Will the code run? All I know is that CF is Adobe's version of PHP and ASP. I have no experience coding it. Could you please enlighten me? From what I gathered from the internet, you have to have a CF server in order to run a CF code but the resources seem scarce. I just need someone knowledgeable to verify...

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

守望孤独 2024-09-11 03:43:25

为了运行 ColdFusion 代码 (CFML),您的服务器上需要有一个 ColdFusion 处理器。这意味着要么使用 Adob​​e ColdFusion,要么如果您想省钱,请尝试使用 Railo 或 Open BlueDragon,两者都是 CFML 处理器。如果您控制服务器,这些解决方案中的任何一种都可以工作,但是,如果您使用共享托管帐户,则可能会不走运。许多主机将 ColdFusion 作为您的主机帐户的附加服务。最好询问您的房东,看看他们是否提供。

如果您无法获得这些解决方案中的任何一个,那么最好的办法就是翻译该代码(或者聘请知道如何执行此操作的人的服务),以便它可以在您的主机上运行。这意味着将其从 CFML 转换为 PHP、ASP 或 .NET (Visual Basic / C#)。您找不到可以为您执行此操作的软件。

In order to run ColdFusion code (CFML), you need to have a ColdFusion processor on your server. This means either using Adobe ColdFusion, or if you're looking to save money, try looking at Railo or Open BlueDragon, both are CFML processors. Any one of these solutions will work if you are in control of the server, however, if you are on a shared hosting account, you may be out of luck. Many hosts will have ColdFusion as an add-on service to your hosting account. It's best to ask your host to see if they offer it.

If you can't get any of these solutions, the best you could do would be to go about translating that code (or, engaging the services of someone who knows how to do it) so that it would run on your host. This would mean taking it from CFML to PHP, ASP, or .NET (Visual Basic / C#). You won't find software that can do this for you.

一个人练习一个人 2024-09-11 03:43:25

ColdFusion 将在任何 J2EE servlet 引擎上运行 - 包括 JRun、Tomcat、Resin、Jetty 等。

它不会直接在 Apache 或 IIS 等 Web 服务器上运行(这些服务器被配置为向应用程序服务器发送适当的请求)。

正如 Steve 指出的那样,还有 Adob​​e CF 的替代 CFML 引擎 - 两个主要的引擎是 RailoOpenBD(两者都是开源的,并提供商业选项),但它们仍然需要 Tomcat/etc。

如果您有 Windows+IIS 服务器,您可以考虑 BlueDragon.NET,它只是商业版(不是开源),但可以直接插入 IIS Web 服务器(不需要 J2EE servlet 引擎)。

这是否比用您已经使用的语言/技术重写 70 行逻辑更容易,将取决于该代码到底在做什么。

一方面,70 条线路并不算多,坚持单一技术会更好,但话又说回来,Railo 或 OpenBD 都既快速又易于设置,并且不会花费您任何许可费用。

ColdFusion will run on any J2EE servlet engine - which includes JRun, Tomcat, Resin, Jetty, and others.

It will not run directly on a web server like Apache or IIS (these are configured to send appropriate requests to the application server).

As Steve points out, there are alternative CFML engines to Adobe CF - the two main ones are Railo and OpenBD (both are Open Source with commercial options available), but these still both need Tomcat/etc.

If you have a Windows+IIS server, you might consider BlueDragon.NET, which is commercial only (not Open Source), but will plug directly into an IIS web server (no need for a J2EE servlet engine).

Whether any of this is easier than just re-writing the 70 lines of logic in a language/technology you're already using will depend on what precisely that code is doing.

On one hand, 70 lines isn't much and sticking to a single technology is better, but then again, Railo or OpenBD are both quick and easy to setup and wont cost you any licensing fees.

很糊涂小朋友 2024-09-11 03:43:25

Coldfusion 需要一个服务器组件来解释它。也就是说,有很多方法可以让它运行,具体取决于您的主机提供的内容...

例如 Adob​​e Coldfusion Server 产品线、BlueDragon、Railo。

有开源解决方案和付费解决方案。

或者根据混合代码的复杂性,您可以将其转换为 php 或您更熟悉的任何语言。

Coldfusion requieres a server component to interpret it. That said, there are many ways to have it run, based on what your host provides...

Such as the Adobe Coldfusion Server Product Line, BlueDragon, Railo.

There are open source solutions, and paid solutions.

Or depending on the complexity of the colfusion code, you could convert it to php or whatever language you are more familiar with.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文