doulidai6316 2011-03-30 23:29
浏览 51
已采纳

如何在没有越狱的情况下在iOS上托管PHP脚本?

I am writing an internal app for my company,

It's a developer tool, which runs on a Website hosted in-device. ( I'm not planning to sell this App through the App Store, I know that downloaded code can't be executed in-device )

I was wondering if there's a way to run a PHP enabled web server from iOS without Jailbreaking, I'm aware of an nginx build that supports PHP for jailbroken iOS devices and I also know there's no problem in running an embedded web server like mongoose on iOS.

Any insights/suggestions are appreciated.

  • 写回答

1条回答 默认 最新

  • dps43378 2011-03-31 01:28
    关注

    Though neither of these works with PHP as they are now, they're both pretty solid http servers that will work fine on iOS and so will take you at least part of the way:

    CocoaHTTPServer: A much-improved version of Apple's simpler cocoahttpserver example.

    SimpleHTTPServer: Cultured Code's basic Cocoa web server.

    I don't believe there's anything on the market currently that will interpret PHP under iOS. However, since Apache and PHP both run fine on OS X and iOS is effectively an extension/modification of OS X, it's likely not mindblowingly difficult to port them over.

    It will surely require accessing a number of private APIs, but as you say, you've not trying to sell it in the App Store, so it's at least within the realm of possibility.

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?

悬赏问题

  • ¥30 自适应 LMS 算法实现 FIR 最佳维纳滤波器matlab方案
  • ¥15 lingo18勾选global solver求解使用的算法
  • ¥15 全部备份安卓app数据包括密码,可以复制到另一手机上运行
  • ¥15 Python3.5 相关代码写作
  • ¥20 测距传感器数据手册i2c
  • ¥15 RPA正常跑,cmd输入cookies跑不出来
  • ¥15 求帮我调试一下freefem代码
  • ¥15 matlab代码解决,怎么运行
  • ¥15 R语言Rstudio突然无法启动
  • ¥15 关于#matlab#的问题:提取2个图像的变量作为另外一个图像像元的移动量,计算新的位置创建新的图像并提取第二个图像的变量到新的图像