Export to GitHub

php-for-android - issue #14

filex exited


Posted on Oct 17, 2013 by Happy Elephant

What steps will reproduce the problem? 1.i installed both the SL4A and PhpForAndroid.apk and the installation was successful

but when i open any pre created files like hello_world.php or any file

i got message

hello_world.php exited

filename exited with any opened file

and the file output didn't appear en ask me to close the tarminal

but that only happen with the echo data like php_info and echo test

What is the expected output? What do you see instead?

What version of the product are you using? On what operating system? my phone is nesux 4

Please provide any additional information below.

Comment #1

Posted on Dec 15, 2013 by Massive Bird

The answer to the problem is very simple, the precreated files contain mistakes! For instance, hello_world.php should contain the following line

$name=$droid->dialogGetInput("Hi!","What is your name?","");

but it contains only a part of that. There is API menu in the PHPforAndroid editor where you can find proper forms of all methods that class Android contains. Moreover, PHP version included in SL4A is not really 5.3.3. It contains only a part of all instructions which real PHP includes! It is very simplified PHP!

Status: New

Labels:
Type-Defect Priority-Medium