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

来源:互联网 发布:淘宝花呗分期怎么开通 编辑:程序博客网 时间:2024/06/07 23:43
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) |
0

上一篇:PHP and Lighttpd for Android

下一篇:php-5.5.1-android.patch.v3

相关热门文章
  • phpStudy 下载,PHP5开发环境...
  • 为PHP添加GD库支持
  • 灵芝的种类和图片
  • yii2权限(RBAC)
  • php生成二维码的几种方式...
  • linux dhcp peizhi roc
  • 关于Unix文件的软链接
  • 求教这个命令什么意思,我是新...
  • sed -e "/grep/d" 是什么意思...
  • 谁能够帮我解决LINUX 2.6 10...
给主人留下些什么吧!~~
原创粉丝点击