what is “php://input”? It mainly seen in webservice

前端 未结 3 932
无人共我
无人共我 2021-02-13 02:22

What is the relevance of php://input in the following snippet, and what is it used for?

$json_string = GPTake(array(\'json_string\'));
$handle = fop         


        
3条回答
  •  旧时难觅i
    2021-02-13 03:12

    php:// is a scheme wrapper around various input/output streams that PHP supports. You can read up for here: http://www.php.net/manual/en/wrappers.php.php.

    Specifically, php://input allows you to read the input stream directly.

提交回复
热议问题