Introduction
PHP for Android project (PFA) aims to make PHP development in Android not only possible but also feasible providing tools and documentation.
We currently have an APK which provides PHP support to SL4A (PhpForAndroid.apk) and we're working in a manual.
Irontec is the company behind this project. About this project
FAQ (Frequently Asked Questions)
We currently have an APK which provides PHP support to SL4A (PhpForAndroid.apk) and we're working in a manual.
Irontec is the company behind this project. About this project
FAQ (Frequently Asked Questions)
Phpforandroid en
View more presentations from ivmos.
Getting help, getting involved
Subscribe to PhpForAndroid discussion group |
E-mail: |
Visit this group |
Besides, a few wiki pages have a comment system at the bottom (this one e.g).
PhpForAndroid-APK
SL4A (Android Scripting Environment)
is a Google-mantained project which “brings scripting languages to
Android by allowing you to edit and execute scripts and interactive
interpreters directly on the Android device”.
PhpForAndroid-APK provides PHP support to SL4A.
Screencasts
PhpForAndroid-APK provides PHP support to SL4A.
Screencasts
Requirements
Install SL4A (Android Scripting Environment)
Don't have barcode reader? Click here.
Download SL4A
SL4A only comes with a shell interpreter by default.
Download SL4A
SL4A only comes with a shell interpreter by default.
Install PhpForAndroid.apk
Don't have barcode reader? Click here.
Download latest release (Releases page)
Once installed, run it and tap on “Install”.
The PHP binary and the scripts will become available to SL4A.
Now!, run SL4A. 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
Download latest release (Releases page)
Once installed, run it and tap on “Install”.
The PHP binary and the scripts will become available to SL4A.
Now!, run SL4A. 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
Getting started
SL4A ApiReference is your friend : http://code.google.com/p/android-scripting/wiki/ApiReference
The real time ways (no more install, no SDK, nothing required)
1. Add/Edit PHP scripts on your mobile
SL4A 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”:
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 parsingTODO Tell about remote, using SDK…
How to distribute your PHP script as APK
Manual
Screencast
Check out our screencasts for easy installation on your terminals.
Problems?
Fill the following survey: http://www.zoomerang.com/Survey/WEB22AXDHRY8L5or leave a comment with the following info: brand, model, android version and a brief text with the problem.
or join the pfa group and tell us.