run php7.1 on my old android2.2 devices without root privilege
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
.idea
app
gradle/wrapper
http
.gitignore
README.MD
build.gradle
gradle.properties
gradlew
gradlew.bat
php.ini
resolv.conf
settings.gradle

README.MD

开机自动启动,无GUI,无服务进程,开机自动更新sdcard目录下php二进制文件,依赖busybox

编译好的 http://share.suconghou.cn/files/arm/android_2.2_php.apk

交叉编译PHP7.1

编译的扩展

[PHP Modules]
Core
curl
date
filter
hash
json
mbstring
openssl
pcre
Phar
Reflection
session
SPL
sqlite3
standard
tokenizer
zip
zlib

[Zend Modules]

定制版php7.1 for android 二进制文件 http://share.suconghou.cn/files/arm/php_android_7.1.8.xz

交叉编译参见 http://blog.suconghou.cn/post/php-on-android/

busybox httpd

busybox httpd 仅支持http1.0,对于http1.1的range,有简单实现,但是不能seek指定块.

且是采用fork多进程工作,效率不佳,故采用golang实现http server,作为替代.

golang microhttp 二进制文件 http://share.suconghou.cn/files/arm/microhttp.xz