How to host PHP scripts on iOS without jailbreaking?

I am writing an internal application for my company,

This is a developer tool that runs on a website hosted on a device. (I do not plan to sell this application through the App Store, I know that the downloaded code cannot be executed on the device)

I was wondering if there is a way to start a PHP-enabled web server using iOS without Jailbreaking, I know about the nginx assembly that supports PHP for jailbroken iOS devices, and I also know that there is no problem starting the embedded web server for example mongoose on iOS.

Any ideas / suggestions are welcome.

+4
source share
1 answer

Although none of them work with PHP as they are now, they are both fairly reliable HTTP servers that work fine on iOS and therefore take you at least partially:

CocoaHTTPServer : A significantly improved version of Apple, a simpler example of cocoahttpserver.

SimpleHTTPServer : The main Cocoa web server with cultural code.

I do not believe that something will be interpreted on the market by PHP under iOS. Nevertheless, since Apache and PHP work fine on OS X, and iOS is an extension / modification of OS X, most likely, it will not be difficult for them to transfer them.

Of course, this will require access to several private APIs, but, as you say, you are not trying to sell it in the App Store, so at least within the possibilities.

+4
source

Source: https://habr.com/ru/post/1345963/


All Articles