PHP数据流json
file_get_contents()函数把整个文件读入一个字符串中
要用php获取参数,就要用php://input来获取参数
file_get_contents('php://input');//获取参数
php://input相当于tp5的input()获取参数一样
LNMP
1、Linux
2、Nginx
3、MySQL
4、PHP
APP接口
客户端与服务端数据的交换
HTTP通讯三要素
1、URL 地址
2、Method 方式
3、Params 内容
客户端传递参数
1、URl参数 GET
2、Request Body POST
(1)form-url
(2)form-data
(3)json
PHP获取post的json数据
