The PHP for Android Manual (English version)

Last change: 22-07-10

About

License

PFA code is under Apache license, copyright Irontec.

http://www.apache.org/licenses/LICENSE-2.0.html

Manual is Creative Commons attribution

http://creativecommons.org/licenses/by/2.5/

Installation

Install ASE (Android Scripting Environment)

<tip centered down note> PhpForAndroid.apk requires ASE r26. However, r26 hasn't been released yet (latest is r25) so we provide an unofficial ASE build by now. Please, don't tell ASE folks about bugs related to this build. Contact us instead or build your own ASE from trunk to discard an already addressed issue. </tip>

~~BARCODE~class=barcode_left~url=http://phpforandroid.net/files/ASEr26unofficial.apk~size=S~~

Download our unofficial ASE build

ASE only comes with a shell interpreter by default.

Install PhpForAndroid.apk

~~BARCODE~class=barcode_left~url=http://phpforandroid.net/files/PhpForAndroid_r1.apk~size=S~~

Download latest release (Releases page)

Once installed, run it and tap on “Install”.

The PHP binary and the scripts will become available to ASE.

Now!, run ASE. You should be able to see PHP demo scripts and they should work!.

Doesn't it work? Please, try uninstalling and installing again (this is alpha software).

Still not working? Fill this survey please: http://www.zoomerang.com/Survey/WEB22AXDHRY8L5

Screencast

Getting started

The real time ways (no more install, no SDK, nothing required)

1. Add/Edit PHP scripts on your mobile

ASE allows you to add or edit scripts on your mobile.

2. Use testnow.php

“allow_url_include” is On by default so you can include your code easily.

Include your own internet publicly available script. You'll find an already installed php script called “test.php”:

<?php
require_once("Android.php");
include("http://phpforandroid.net/files/testnow.php.txt"); // ".txt" extention required to prevent parsing

TODO Tell about remote, using SDK…

SL4A API

Distributing your PHP script as APK

The ASE project is working on this. It will soon be possible.

Scripts collection

When PFA isn't enough: AndroidJava for PHP programmers.

FAQ : Frequently Asked Questions

FAQ

~~DISQUS~~




 
manual/en/index.txt · Last modified: 2010/07/22 21:54 by admin   Back to top
Powered by DokuWiki RSS: cambios recientes Irontec