哪个更适合桌面应用程序?
我是创建桌面应用程序的新手。我有一个 php 工作站点,支持 mysql。我想将此网站转换为桌面应用程序。 Adobe AIR 还是 Adobe Flex 更好? 我可以在 AIR 和 Flex 中使用 php 吗?或者我应该将它们转换为 xml 或它使用的东西?
i'm new to creating desktop applications. I've a working site in php with mysql support. I want to convert this site into a desktop application. Is Adobe AIR or Adobe Flex better?
can i use php as such in both AIR and Flex? or should i convert them to xml or something which it uses?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
AIR 是桌面上的 Flex...所以...我想您的意思是是否可以将 AIR 与 PHP 一起使用? AIR/Flex 应该能够处理您在服务器上使用的任何通信协议。
AIR is Flex on the desktop... So... I suppose you mean whether you can use AIR with PHP? AIR/Flex should be able to handle whatever communication protocol you're using on the server.
说“我应该将它们转换为 xml 还是其他东西”有点模糊。
我想您真正问的是:我应该完全用 Adobe 技术重写我的应用程序还是我可以/应该将它与我现有的 PHP 代码集成吗?
我建议您将现有的 PHP 功能公开为 RESTful Web 服务,并在 Adobe AIR 中重做用户界面。这样您就可以利用现有站点来制作桌面应用程序。有大量关于构建此类应用程序的信息,只需研究 REST、SOA(面向服务的架构)、SAAS(软件即服务)即可。
Adobe AIR/Flex 很好,特别是如果您希望它在多个操作系统上运行,但应用程序不一定具有其主机桌面环境的外观和感觉。
Saying 'should i convert them to xml or something' is a bit nebulous.
I guess what you really asking is: Should I rewrite my application entirely in Adobe technologies or Can I/Should I integrate it with my existing PHP code.
I would recommend you expose the existing PHP functionality as RESTful web services and redo the user interface in Adobe AIR. That way you can leverage the existing site to make the desktop application. There is a ton of information of building applications like this, just research REST, SOA (service oriented architecture), SAAS (Software as a Service).
Adobe AIR/Flex is fine, especially if you want it to work on multiple operating systems, but the Application won't necessary have the looking and feel of its host desktop environment.
Adobe AIR 是一个运行时,它增加了 Adobe Flash Player 的功能,以允许创建桌面应用程序。
Adobe Flex 是一个用于构建丰富的用户界面的框架。 Flash Player 和 AIR 均支持 Flex 应用程序。
这不能是一个或另一个的问题。 Flex 可以与 AIR 一起使用。如果您想要一个允许您使用 Adobe Flash 平台技术的桌面应用程序,那么一定要使用 AIR。如果您想要在 AIR 应用程序中使用一组预构建的 UI 控件,也可以使用 Flex!
您可以在 Flash Player 和 AIR 中与服务器上的 PHP 进行通信。 PHP 不能直接在 AIR 中运行。如果您希望应用程序完全独立,没有服务器,那么您不能使用 PHP。
Adobe AIR is a runtime that adds to the capabilities of Adobe Flash Player to allow the creation of desktop applications.
Adobe Flex is a framework to build rich user interfaces. Flex applications are supported both in Flash Player and AIR.
This cannot be a question of one or the other. Flex can be used together with AIR. If you want a desktop app that allows you to use Adobe's Flash Platform technologies, definitely use AIR. If you want a set of pre-built UI controls to use in that AIR app, use Flex too!
You can communicate with PHP on your server in both Flash Player and AIR. PHP cannot be run directly in AIR. If you want the application to be entirely self-contained with no server, then you can't use PHP.