Read POST request parameters properly in PHP for request more than 1450 B?

后端 未结 2 754
醉梦人生
醉梦人生 2021-01-13 14:12

I receive POST request on my api.php script. The content red using this code:

$fp = fopen(\'php://stdin\', \'r\');
$all = \"\";
while($line = fgets($fp, 4096         


        
2条回答
  •  生来不讨喜
    2021-01-13 14:50

    Is there anything in the $_FILES variable?

    Is there a MAX_FILE_SIZE element in the submitted form?

    What are the values here?

    echo 'post_max_size = ' . ini_get('post_max_size') . "\n";
    echo 'upload_max_filesize = ' . ini_get('upload_max_filesize') . "\n";
    

提交回复
热议问题