Build the PHP environment of Android platform using PAWserver

Source: Internet
Author: User

PAWserver can achieve our desire to run PHP on Android @ Appinn

This is a technical article. It is a bit difficult and does not involve code (several lines are required for simulators), but it is not difficult to discuss the idea.

There is no practical use, and it can be ignored if it is not a tossing emperor.

Main software: PAWserver,

Device requirements: install PHP requires the ARM architecture.

Therefore, ZTE U880 of the mouse cannot do this. Using a simulator, mobile phone users with ARM architecture can directly view section 2.

Section 1: Port ing of the Android Simulator

By default, Android only supports one-way access to PC computers through IP address (10.0.2.2), while PC computers cannot directly access the Android simulator system through IP addresses. Port redirection (redir) is required for communication between PCs, Android simulators, and Android simulators.

To use telnet? Command. For Windows 7 users, go to "enable or disable Windows" and check the telnet-related items.

Run the Android simulator and wait until the boot is complete.

Run CMD in Windows and enter the following command:

Telnetlocalhost5554

Where 5554 is displayed in the running status? Port number in the upper left corner of the Android Simulator

After the script is executed, the androidconsole is displayed. You can use "help" to view the help information.

Run the following command:

Rediraddtcp: 8080: 8080

The redir command is interpreted as follows:

Rediradd? ::

Add a udp/tcp ing

Example:

Redirlist

List all port Mappings

Example: None

Redirdel? :

Deletes a specified port ing.

Example: redirdeltcp: 8080

If you find that your command is correct during the operation, but an error is reported, close the command window and try again (remember to connect with the telnet command First)

Section 2: Install PAWserver on your mobile phone

You can perform this step without any suspense.

Then open and start the service.

Then, the mobile user opens the website displayed on the mobile phone on the computer.

The simulator user opens 127.0.0.1: 8080 (the port is the port you just set)

Log On (Default User Name/password: admin/paw)

You can use it to control the operations and management of mobile phones. It turns out to be a mobile phone management software.

Section 3: Install the PHP plug-in

In the web page opened above

"Add-Ons" on the left -- "Plug-ins"

Avast reports viruses on this page. Everybody is free. The mouse goes in anyway.

Is it powerful? How many things the mouse cannot understand ......

We use the first one? PHPPlug-in (Setup ). The Download button is available on the right.

Decompress the package to/sdcard/paw/html/app/plugins/

Then refresh the page, and there is a "Plug-ins" main menu on the left to enter, and then "PHPSetup"

Select a version and click "Install ".

Disable the PAW service on the mobile phone (that is, click the big button), and then start the service (or click the big button)

Refresh the webpage, or is there a gray bar on the right side of the page? Click the PHPinfopage link.

If you see the page shown in figure 5, the operation is successful.

Unsuccessful? Back? Install PHPSetup in another version, restart the service, and try again.

Section 4: Install the PHPDome plug-in

The method is basically the same as above. It contains three plug-ins: A guess word, a file manager (I am running an error here), and a chat room (very practical)

Postscript:

In fact, the mouse wants to install a non-Database Blog in it, but it is not successful. It is estimated that a PHP function does not support anything.

In theory, SQLite is supported.

Of course, if you want to create a dynamic domain name ...... Okay. It's time to play handsome.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.