Last change: 22-07-10
PFA code is under Apache license, copyright Irontec.
Manual is Creative Commons attribution
<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>
ASE only comes with a shell interpreter by default.
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
ASE ApiReference is your friend : http://code.google.com/p/android-scripting/wiki/ApiReference
ASE allows you to add or edit scripts on your mobile.
“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…
The ASE project is working on this. It will soon be possible.
If you're a PHP5 (5!) programmer, you're not so far. We'll provide tutorials.
From PHP to Android, Branko Ajzele's posts: