grantjbutler / PHPTest

Run PHP from a web server running in an iOS application.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

PHPTest

PHPTest is a proof of concept for running PHP from a webserver that's embedded in an iOS application. The server runs on port 3000, and there's a script at /test.php that prints phpinfo();.

This was a fun little project to get working, however, I don't think I'll be doing any more development on it. If you want to continue messing around with it, check out the build-for-ios.sh script for how to compile a PHP static library that will run in your iOS app. This is optional as there's already a multi-architecture (meaning armv7, armv7s, and i386) library included in PHPTest/. However, if you do want to compile it yourself, remember to build multiple versions for each architecture (all the different variables are included in the bash script), as well as using libtool to merge them into one library so you don't have to juggle managing which library you're using for which target.

Output from phpinfo();

About

Run PHP from a web server running in an iOS application.


Languages

Language:C 63.2%Language:PHP 34.6%Language:Objective-C 1.0%Language:C++ 0.5%Language:Shell 0.4%Language:JavaScript 0.1%Language:Perl 0.1%Language:Awk 0.0%Language:XSLT 0.0%Language:D 0.0%Language:Python 0.0%