适用于 iPad 的离线 Web 应用程序
我目前在一个开源电子商务平台 (www.oscmax.com) 上工作,我正在尝试弄清楚是否可以部署一个可以在 iPad 上运行的离线版本。
我似乎找不到 iPad AMP (Apache MySQL PHP) 应用程序,想知道是否有人可以回答:
a) 有谁知道可以在 iPad 上运行的 AMP 版本 b) 是否有另一种方法可以实现此目的,而无需在 XCode 中重新编码整个应用程序。
这个想法是建立一个本地版本的在线商店,销售代表在向批发客户销售产品时可以使用该在线商店,批发客户将订单存储在本地,直到他们找到 WiFi 或 3G 信号。
如果我能让 Apache、MySQL 和 PHP 在本地运行(就像使用 WAMP、MAMP、LAMP 等一样)那就太好了。
有什么想法吗?
I currently work on an open source e-commerce platform (www.oscmax.com) and I am trying to work out if I can deploy an offline version that can run on an iPad.
I can not seem to find an iPad AMP (Apache MySQL PHP) application and was wondering if anyone could answer:
a) Does anyone know of an AMP version that will run on an iPad
b) Is there another way to achieve this without recoding the entire application in XCode.
The idea is to have a local version of the online store that sales reps can use when selling to wholesale customers that will store the orders locally until they find a WiFi or 3G signal.
If I could get Apache, MySQL and PHP to run locally (like it does using WAMP, MAMP, LAMP, etc.) it would be great.
Any ideas?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(4)
你不能在 iPad 上运行服务器特定的软件,把它想象成一部大手机,它就是做不到。无论如何,mysql / php / apache 运行所需的开销不是您想要的。你需要重新做你的应用程序。就这么简单。
You can't run server specific software on an iPad, think of it as a big phone, it just won't do it. The overhead required for mysql / php / apache to run is not something you want on a client side anyway. You need to re-do your app. Simple as that.
iOS 开发者条款禁止在本机应用程序中使用解释代码,这将排除通过 iOS 应用程序运行 PHP 的可能性。最好的选择是研究 HTML5 技术,例如离线存储并构建一个 Web 应用程序。
The iOS developer terms prohibit the use of interpreted code in native apps which would rule out running PHP through an iOS app. Your best bet would be to look into HTML5 technologies such as offline storage and build a web app.
iOS 禁止应用程序生成进程,而标准 AMP 工具会生成大量进程。所以不。
iOS prohibits apps from spawning processes, and the standard AMP tools spawn lots of processes. So no.
有一个应用程序似乎可以满足此需求(代码并在ipad上运行php服务器):http://www.becomekodiak.com/kodiak-php.html
There's an app that appears to serve this need (code and run a php server on an ipad): http://www.becomekodiak.com/kodiak-php.html