file_get_contents("php://input", "r")
2012-11-21 14:30
357 查看
解释不清,直接上例子
index.html
action.php
index.html
<form action="action.php" method="post" > <input type="text" name="userName" id="userName" /><br/> <input type="text" name="userPass" id="userPass" /><br/> <input type="submit" value="ok" /> </form>
action.php
<?php $raw_post_data = file_get_contents('php://input', 'r'); echo "-------\$_POST------------------<br/>"; echo var_dump($_POST) . "<br/>"; echo "-------php://input-------------<br/>"; echo $raw_post_data . "<br/>"; ?>
相关文章推荐
- file_get_contents("php://input")的使用方法
- file_get_contents("php://input")
- file_get_contents(&quot;php://input&quot;);
- 关于file_get_contents("php://input")
- file_get_contents("php://input")
- php file_get_contents("php://input")的用法
- file_get_contents("php://input")的使用方法
- file_get_contents("php://input")的使用方法
- file_get_contents("php://input")的使用方法
- file_get_contents("php://input") php://input 输入流
- file_get_contents("php://input")的使用方法
- 关于file_get_contents("php://input")
- php获取body体,file_get_contents("php://input")
- file_get_contents("php://input")的使用方法
- file_get_contents("php://input", "r")实例介绍
- 关于file_get_contents("php://input")
- file_get_contents("php://input")的使用方法
- file_get_contents("php://input")的使用方法
- file_get_contents("php://input")的使用方法
- 谈谈$_POST、$GLOBALS['HTTP_RAW_POST_DATA']和file_get_contents('php://input')