$ _POST size limit?

Possible duplicate:
What is the maximum mail request size?

Does $ _POST have a size limit when used in conjunction with forms in PHP? Obviously, there should be some restrictions when viewing $ _GET, since most browsers will start complaining about ~ 250 characters (or something like that), and data may be lost, it is obvious that this restriction does not apply to $ _POST.

I could check it myself, but thought it was faster to ask here. If I had a simple form with a text box, how much data could I enter before I run into problems?

+6
source share
6 answers

It depends on the value of the PHP configuration directive POST_MAX_SIZE , which is usually set to 8 MB (~ 8 million characters).

+10
source

Yes, it has a limit, you can set a limit from several places:

1., in php.ini

 post_max_size="8M" 

2., from a .htaccess file, if you have

 php_value post_max_size 8M 

3., from the php side,

 ini_set('post_max_size',"8M") 
+7
source

Yes,

you can change the limit with php.ini "post_max_size"

+6
source

This is the PHP ini directive, post_max_size . By default, it is 8 MB.

+1
source

Yes. It is defined in the php.ini file.

0
source

Yes, POST data is governed by post_max_size (default is 8M)

0
source

Source: https://habr.com/ru/post/897901/


All Articles