Porting PHP to Android——没有具体移植过程

http://bodudu.org/2011/04/porting-php-to-android/

There is already an open-source project called “PHP for Android”(PFA), and its official site is: http://www.phpforandroid.net/. The source code for porting PHP is available at: http://code.google.com/p/php-for-android/.

However, there are some major limitations of the PFA project. First, the PFA project is based on the SL4A project (Scripting Layer for Android
, official site: http://code.google.com/p/android-scripting/), whose major goal is aimed at providing support for quickly prototype applications for Android on the device itself using high-level scripting languages. To speak more simply, the PFA project, or the SL4A project, are helping you develop Android applications with PHP scripts. But our need is, using PHP to produce dynamic web pages on Android devices, and using web browsers on Android devices to render these web pages. So there will be many differences in the porting architecture.
Seond, the PFA is deployed as a standard Android application. But we simply need a PHP runtime. The PHP runtime will be run as a standalone service by the web server, like CGI. It will be built into the Android system, so we don’t have to wrap it as an Android application.

In the following articles, I will write about how to make a standalone PHP runtime on Android. Some of the work are borrowed from the PFA project, and I will mainly discuss the special work needed for our goal.


<script>window._bd_share_config={"common":{"bdSnsKey":{},"bdText":"","bdMini":"2","bdMiniList":false,"bdPic":"","bdStyle":"0","bdSize":"16"},"share":{}};with(document)0[(getElementsByTagName('head')[0]||body).appendChild(createElement('script')).src='http://bdimg.share.baidu.com/static/api/js/share.js?v=89860593.js?cdnversion='+~(-new Date()/36e5)];</script>
阅读(65) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~
评论热议
原文地址:https://www.cnblogs.com/ztguang/p/12649069.html