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

前端 未结 3 912
无人共我
无人共我 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

    0 讨论(0)
  • 2021-02-13 03:10

    read following

    http://php.net/manual/en/features.file-upload.put-method.php

    0 讨论(0)
  • 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.

    0 讨论(0)
提交回复
热议问题