运维网's Archiver
论坛
›
php
› file_get_contents("php://input")的使用方法
yanchuen
发表于 2018-12-14 10:23:08
file_get_contents("php://input")的使用方法
1).php用file_get_contents("php://input")或者$HTTP_RAW_POST_DATA可以接收xml数据
比如:getXML.php;//接收XML地址
这里的$data就是包含xml数据的数组,具体php解析xml数据更新详细的方法sendXML.php
2).一个手机上传图片到服务器的小程序
上传文件
接收文件
页:
[1]
查看完整版本:
file_get_contents("php://input")的使用方法