Building Android app for running PHP and MySQL on Android Tablet

前端 未结 4 1694
盖世英雄少女心
盖世英雄少女心 2021-02-03 12:32

I want to run PHP + MySQL server on my Android Device. People seem to suggest applications like KSWeb and Bit Web.

Other solutions suggested are that I install an applic

相关标签:
4条回答
  • 2021-02-03 12:57

    I am New to android but something sounds wrong about all this.php is a server side scripting language. Now you are going to run around from hot spot to hot spot hosting I guess a web service backed by a mysql database. Do you have a static ip? Mysql is an excellent choice for a low end dbms if sqlite was not already built into droid. Like I said I am New and it's probably me but this just sounds wrong. From the answers I see someone talking about compiling php which would make it no longer script.

    0 讨论(0)
  • 2021-02-03 12:58

    If you're open to use something other than PHP/Mysql, Python may be a good option. You can listen to sockets and send info through Python, which is supported through SL4A app.

    Apparently CherryPy works on Android: http://www.defuze.org/archives/228-running-cherrypy-on-android-with-sl4a.html

    There's Django and probably others, but those may be more complex to set up.

    0 讨论(0)
  • 2021-02-03 13:03

    here is some articles regarding cross compiling PHP, Nginx, Lighttpd on arm6

    Cross compiling PHP

    • Cross Compile PHP 5.3.3 to ARM
    • Error while compiling PHP for ARM (not reverent but helpful)
    • starting with php cross compile
    • Cross Compile Lighttpd + PHP + MySQL for ARM (2) (in Chinese but translate it to English)

    Cross compling LIghttpd

    • lighttpd cross compiling
    • Cross compiling for ARM9 doesn't work

    Cross compiling Nginx

    • Nginx CMake
    0 讨论(0)
  • 2021-02-03 13:07

    I am currently maintaining free and open source web server solution stack package, consisting mainly of the Lighttptd HTTP Server, MySQL database, PHP programming languages. It is still at beta stage.

    It can give you a basic idea about how to develop this type of stuffs in android.

    Yes, its true binaries must compiled for ARM CPU in order make file executable.

    And you can use NDK but i recommend you to go with alternatives like CodeSourcery or Linaro

    Here some starter tutorial for cross compiling Linux program to ARM

    • ARM cross-compiling
    • Cross compiling static C hello world

    Anyway you can read this article how i cross compile for DroidPHP

    • Cross Compiling for DroidPHP
    0 讨论(0)
提交回复
热议问题