PHP for iPad 或其他解决方案
这是一个棘手的问题。
我正在为 iPad 开发一个网络应用程序,它将作为信息亭安装。该应用程序本质上是一个测验。不需要将数据存储在数据库中,但需要处理从一页到另一页的数据(从问题页到结果页)。
最初的解决方案是简单的 PHP。我现在获悉,信息亭将无法使用 wi-fi/3g,因此它们无法访问一直在正常运行的 php 网络服务器。应用程序需要基于浏览器。
四处寻找在 iPad 上安装 PHP 的解决方案,例如 Cydia 的 PHPPOD,但不确定这是否是 iPad 的一个选项……而且我们不会越狱它们。这甚至可以在没有 php 的情况下完成吗?
Here's a tricky one.
I'm developing a web app for iPads that will be installed as kiosks. The app is essentially a quiz. Wont need to store data in a database, but will need to process data from 1 page to another page (from questions page to results page).
Original solution was simple PHP. I have now been informed that wi-fi/3g will be unavailable to the kiosks, so they wont have access to the webserver w/ php that has been working like a charm. App needs to be browser-based.
Looked around for solutions for installing PHP on iPad, like PHPPOD from Cydia, but unsure if that is even an option for iPad...and we wont be jailbreaking them. Can this even be done w/o php?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
如果你不越狱它们,尝试在它们上获得一个可用的 PHP 解释器可能并非不可能,但这可能至少会非常困难(而且苹果不太可能在他们的应用程序商店中批准随机的 PHP 解释器) 。
我建议尝试将应用程序移植到 Javascript。如果只是简单的问题->如果需要的话,使用 jQuery 编写一个基本的 Javascript Web 应用程序来提供帮助应该不会太痛苦。
If you won't be jailbreaking them, trying to get a working PHP interpreter on them might not be impossible, but it'll probably be at the very least annoyingly difficult (and it's unlikely Apple would approve random PHP interpreters in their app store).
I'd suggest trying to port the app to Javascript instead. If it's just a simple questions -> results flow, writing a basic Javascript web app with jQuery to help out if need be shouldn't be too painful.
如果您不越狱它们,那么您将无法在其上安装任何未经批准的应用程序。苹果不希望你绕过应用商店,因为他们想要 30% 的提成。在 iPhone/ipad 上安装 PHP 解释器将允许您构建 Apple 控制之外的应用程序 - 这是 Flash 永远不会出现在 iPhone 上的主要原因 - 它不仅仅是用于播放电影,它实际上是一个相当完整的运行时环境。
您可以尝试使用 HTML5 本地存储,或者使用 iOS 中的本机 SQLlite 数据库。
If you're not jailbreaking them, then you will NOT be able to get any un-approved apps onto them. Apple does NOT want you to bypass the app store, because they want their 30% cut. Installing a PHP interpreter on an iphone/ipad would allow you to build apps outside of Apple's control - this is THE main reason why Flash will never been on an iphone - it's not just for playing movies, it's actually a pretty full runtime environment.
You could try using HTML5 local storage, or use the native SQLlite database in iOS.
如果没有 wifi/3G,您将需要本地存储,不是吗?为此,您无需越狱您的 iPad 和 iPad。强制它通过 PHP 工作。您可以执行以下操作 -
希望这会有所帮助...
Without wifi/3G you would need local storage won't you? For this you need not jailbreak your iPad & force it to work through PHP. You could do that following -
Hope this helps...