PHP: whats the total length of a post global variable?

前端 未结 4 983
Happy的楠姐
Happy的楠姐 2020-12-03 04:45

I was wondering if anybody knows the total length that a post global could be. e.g:

$_POST[\'formInput\'] = \"hello world, how long can i be?\";
4条回答
  •  萌比男神i
    2020-12-03 05:47

    $_POST is populated from the body of a HTTP-request. Since there are no restrictions on the size of a HTTP-request, there are no restrictions in the protocol layer. However PHP has some limitations on how much input it will read. You can control this with the ini-setting post_max_size

提交回复
热议问题