Home > Backend Development > PHP Tutorial > PHP怎样实现手机APP把信息存到云服务器中及APP拉取云服务器中的信息

PHP怎样实现手机APP把信息存到云服务器中及APP拉取云服务器中的信息

WBOY
Release: 2016-06-23 13:30:10
Original
891 people have browsed it

如题,求助,大神们快来帮帮忙


回复讨论(解决方案)

你这问题太乏了. 写的代码就多了
大致是
PHP服务端 写一个 URL . 手机APP去掉
比如拉取服务器信息
www.xx.com/a.php  

a.php代码
echo "可以获得我的服务器信息";

上传手机信息给服务器
www.xx.com/b.php

b.php代码
$_REQUEST['name'];

这样服务器端就可以接到手机发送的信息

手机APP主要是请求访问服务器规定的URL .就可以通信了
里面还有很多东西要学. 比如定制私密token,等

source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template