ITPub博客

首页 > 应用开发 > IT综合 > php中的 file_get_contents(‘php://input’)

php中的 file_get_contents(‘php://input’)

原创 IT综合 作者:jyb2014 时间:2015-01-06 17:09:45 0 删除 编辑
index.html

 

 

 
 

action.php
$raw_post_data = file_get_contents('php://input', 'r');
echo "-------\$_POST------------------
";
echo var_dump($_POST) . "
";
echo "-------php://input-------------
";
echo $raw_post_data . "
";
?> 

来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/29753604/viewspace-1392300/ ,如需转载,请注明出处,否则将追究法律责任。

请登录后发表评论 登录
全部评论

注册时间:2014-07-15

  • 博文量
    101
  • 访问量
    196521