Max size of URL parameters in _GET

In PHP, the maximum size of the parameters in a GET request is determined by the server's configuration. The default value is often around 2MB, but it can be increased or decreased depending on the server's settings. The specific value can be found in the server's php.ini file in the variables post_max_size and upload_max_filesize.

Watch a course Learn object oriented PHP

You can check the maximum size of GET request using the ini_get() function.

echo ini_get("suhosin.get.max_value_length");

Note that the value of suhosin.get.max_value_length can be different to post_max_size and upload_max_filesize.