PHP 与Adobe AIR RIA 的
首先也是最重要的 - 如果这个问题已在本网站上被回答了数百次,我很抱歉。当我在其中输入主题时,它会返回大量相关主题,在阅读了大部分主题后,我发现以下问题没有明确的答案。所以它们就在这里(愿火焰开始……)
我正在构建一个库存控制类型的应用程序,其中包含一个在线 mySQL 数据库。我想通过桌面应用程序将该程序的选定几个副本分发给我的客户以检查他们的库存。所以问题是,我想,我是否想使用 Adobe AIR 来完成此操作,或者我应该坚持仅使用 Web 格式类型。其次,AIR 是否能够处理向其发出的同类 PHP/AMF 请求。 (我在某处读到 AIR 仅支持 HTTPService 类型调用,而不支持 RemoteObject)
我希望这是有道理的。我只是不知道 AIR 相对于网络标准输出的所有限制(如果有的话)。我想要 AIR 应用程序的原因是限制使用该应用程序的人。 (我将通过 CD/DVD 向仅需要访问当前库存的客户提供副本。)
预先感谢所有回复的人。再次,如果这个问题被一次又一次地回答,我感到非常抱歉——我确实尝试过做我的作业。
-CS
First and foremost - I am sorry if this is a question that has been answered hundreds of times on this site. When I typed the topic in it came back with a ton of related threads, and after reading through the majority I have found no CLEAR answer to my following questions. So here they are (may the flaming begin...)
I am building an inventory control type of application that houses a mySQL database online. I want to distribute a select few copies of this program via desktop application to customers of mine to check their inventories. So the question is, I guess, do I even want to use Adobe AIR to do this with or should I stick to the web only type of format. And secondly, is AIR capable of dealing with the same kind of PHP/AMF requests being asked of it. (I read somewhere that AIR only supports HTTPService type calls and not RemoteObject)
I hope this makes sense. I just don't know all of the limitaitons, if any, that AIR has versus a standard output the the web. The reason I want the AIR app is to restrict the people even using this application. (I will give copies via CD/DVD to ONLY my customers who need to access their current inventories.)
Thank you in advance to all who respond. And again, I am very sorry if this has been answered time and time again - I truly did try and do my homework.
-CS
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
实际上,AIR 扩展了现有的 ActionScript API。它绝不比纯 Web 应用程序受到更多限制(无论谁写了关于 AIR 不支持“远程处理”的文章,他都不知道有关它的第一件事)。相反,AIR 可以做许多 Web 应用程序无法做的事情:本机窗口、停靠图标、本地数据库、从桌面拖放、与桌面上的应用程序交互……仅举几例。
在你的故事中我最担心的是:你将如何安装它?你必须知道,如果你想安装 AIR 应用程序,你需要先安装 AIR运行时(很像 Java)。
您想通过 CD 分发。
最后一个问题:安全的网络应用程序并为您的客户提供登录用户名/密码有什么问题?
Actually AIR expands on the existing ActionScript API. It is in no way more limited than a pure web application (whoever wrote that article on 'remoting' not being supported in AIR doesn't know the first thing about it). On the contrary, AIR can do lots of things that web-apps can't: native windows, dock icons, local databases, drag&drop from your desktop, interacting with applications on your desktop, ... just to name a few.
The thing I would worry most about in your story is this: how are you going to get it installed? You have to know that if you want to install an AIR app, you need to first install the AIR runtime (much like Java).
You would like to distribute via CD.
One last question: what's wrong with a secure web-app and giving your customers a username/password to log in?
就你而言,我会说 Air 太过分了。如果数据应该保存在客户端,那就是一回事了——Air 确实有一个内置数据库,但你没有。事实上,为了让应用程序工作,您需要访问互联网,而 Air 的一大特点是它是一个桌面应用程序。
至于 Air 与 Flash 在功能上的缺点?据我所知没有。实际上,Air 有很多好处:直接的文件系统读/写/执行访问;内置数据库;而且,因为不用担心 ActiveX 与浏览器扩展的问题,所以我敢打赌 Windows 下有更大的一致性(尽管我在 Mac 下至少看到了一个奇怪的差异)。在 Windows 上,甚至有一个特殊的安装程序可以安装 Air,然后安装 Air 中的应用程序。当然,在 Mac 和 Linux 上,您需要向他们提供分步说明。
问题是,就您而言,我认为这些内容对您在浏览器中可以执行的操作没有任何真正的帮助。在浏览器中,您可以确保您知道您的客户端正在使用版本 3.2.11,而不必让他们去帮助并说“读一下您在计算机上看到的版本”。最后,对于 Air,如果您没有 SSL 证书,则必须购买一个,否则该应用程序将被视为“未知作者”,并且某些安全策略将变得疯狂 - 400 美元虽然不多,但很烦人。
In your case, I would say that Air is overkill. If the data was supposed to be kept client side, that would be one thing -- Air does have a built-in database, but you're not. In fact, in order to get the application work you need to have internet access and one of the major point of Air is that it is a desktop application.
As to detriments of Air vs. Flash in functionality? None that I know of. Actually, Air has a lot of bonuses: direct, file system read/write/execute access; a built in database; and, because there is no worry about ActiveX vs. browser extension, I will wager that there is greater consistency under Windows (although I have seen at least one bizarre difference under Mac). On Windows there is even a special installer which will install Air and then your application in Air. Of course, on Mac and Linux, you'll need to give them step by step instructions.
The thing is, in your case, I don't see any of those being any real help to you over what you could do in a browser. In a browser, you can ensure that you know your clients are using version 3.2.11 instead of having to have them go to the help and say "read me the version you see on your machine." Finally, with Air, if you don't have an SSL certificate you have to buy one otherwise the application will come across as "unknown author" and certain security policies will go bananas -- $400 isn't much, but it is annoying.