What is post_max_size in php?

Im actually confused both upload_max_size and post_max_size.

I searched on the google. but all the results show about how to increase size. but my question is what is post_max_size.

>Solution :

Post_max_size

Sets max size of post data allowed. This setting also affects file upload. To upload large files, this value must be larger than upload_max_filesize.

Generally speaking, memory_limit should be larger than post_max_size. When an int is used, the value is measured in bytes. Shorthand notation, as described in this FAQ, may also be used. If the size of post data is greater than post_max_size, the $_POST and $_FILES superglobals are empty.

This can be tracked in various ways, e.g. by passing the $_GET variable to the script processing the data, i.e. , and then checking if $_GET[‘processed’] is set.

Just literately from PHP.net

Leave a Reply