使用php://input
![](//m.sbmmt.com/m/static/front/mobimages/moren/moren.png)
- 原创
- 2016-06-23 14:35:32615浏览
就是一个输入流, 可以获得POST的原始数据.
echo file_get_contents("php://input");
//示例代码
//test.html
test php://input
test php://input
//input.php
test php://iput web
/n"; echofile_get_contents("php://input"); ?>
test php://iput web
/n"; echo file_get_contents("php://input"); ?>
声明:本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系admin@php.cn核实处理。