PHP for iPad 或其他解决方案

发布于 2024-12-04 07:23:35 字数 304 浏览 4 评论 0原文

这是一个棘手的问题。

我正在为 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 技术交流群。

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

发布评论

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

评论(3

初见 2024-12-11 07:23:35

如果你不越狱它们,尝试在它们上获得一个可用的 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.

唠甜嗑 2024-12-11 07:23:35

如果您不越狱它们,那么您将无法在其上安装任何未经批准的应用程序。苹果不希望你绕过应用商店,因为他们想要 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.

小情绪 2024-12-11 07:23:35

如果没有 wifi/3G,您将需要本地存储,不是吗?为此,您无需越狱您的 iPad 和 iPad。强制它通过 PHP 工作。您可以执行以下操作 -

  1. 越狱应用程序和也许尝试让你的 PHP 解决方案在 iPad 上运行。
  2. 使用本地存储构建本机应用程序(使用 sqlite 或核心数据) ;通过 UIWebView
  3. 如今,构建一个 具有本地存储的 HTML5 应用程序 很容易做到,再次使用 UIWebView。
  4. 正如 Amber 建议的那样,您可以在 JavaScript 中构建所有测验逻辑,但我在这里关心的是您将在哪里存储数据。您需要参考第 3 点。

希望这会有所帮助...

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 -

  1. Jailbreak the app & maybe try to get your PHP solution working on iPad.
  2. Build a native app with local storage (using sqlite or core data) & handle the display through UIWebView.
  3. Build a HTML5 app with local storage is easy to do nowadays, again UIWebView would be used.
  4. As Amber suggests, you could build all your quizzing logic in javascript, but I am concerned here as to where you'll store data. You need to refer to point 3.

Hope this helps...

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