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

前端 未结 3 914
无人共我
无人共我 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条回答
  •  抹茶落季
    2021-02-13 02:54

    It gives you direct access to the input stream, as opposed to accessing the data after PHP has already applied the $_GET/$_POST super globals. Also, according to the manual, it is both less intensive and allows you to grab information before any php.ini directives have been applied.

    For more information, read the PHP Manual on php://input

提交回复
热议问题