PHP does server side, client with Android phone, communication problem
The phone sends a string of numbers to the server side, the server side of the authentication after the return value to the client, the server is equivalent to running in the background how the function is implemented?
------Solution--------------------
Server-side with Apache or Nginx listening 80 port, mobile phone through HTTP request and response to achieve and server interaction
------Solution--------------------
References: Reference: Reference:
reference: is actually a PHP file
The client requests this HTTP address
How to debug it? How to establish a connection between a mobile phone and a computer?
After the PHP file is written.
Mobile client simulates post or GET request HTTP address to get returned content
How to receive Android sent Jso in PHP ...
The transmitted data is in JSON format
Submit or use post or get
Example:
Get-mode-requested interface
api.php?jsonvalue={"name": "Ayzen", "Age": "25"}
Your PHP will handle it.
$array = Json_decode ($_get[' jsonvalue ');