zoukankan      html  css  js  c++  java
  • php中的 file_get_contents(‘php://input’)

    index.html

     <formaction="action.php"method="post">
      <inputtype="text"name="userName"  id="userName"/><br/>
      <inputtype="text"name="userPass"  id="userPass"/><br/>
      <inputtype="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/>";
    ?>

     

  • 相关阅读:
    awk
    tac
    cat
    less
    more
    head
    vim
    linux安装redis
    Redis for Python开发手册
    Python3.x标准模块库目录
  • 原文地址:https://www.cnblogs.com/huangtaozi/p/3319583.html
Copyright © 2011-2022 走看看