There is no function which sets that. It's set by the php.ini configuration directive post_max_size. On Apache, this can be set in httpd.conf or on a per-directory basis in .htaccess files. On Win32, I'm not sure where it can be set other than php.ini.
If you're looking to limit file uploads, there is another php.ini configuration directive, upload_max_filesize, which limits the size of an uploaded file.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.