[英]403 Forbidden on large $_POST array in PHP on Apache
When I post a large form using POST method to PHP running on Apache, I get 403 Forbidden
error from the server. 当我使用POST方法向在Apache上运行的PHP发布大型表单时,我从服务器收到
403 Forbidden
错误。 If I lower the number of form fields to 251, it works perfectly. 如果我将表单字段的数量减少到251,则效果很好。 I have changed
post_max_size
, upload_max_filesize
, etc. to 64 MB but I can see no change at all. 我已将
post_max_size
, upload_max_filesize
等更改为64 MB,但看不到任何变化。
In case if you are using < PHP 5.3.9 如果您使用的是<PHP 5.3.9
PHP 5.3.9 introduced the max_input_vars
config option, which is defaulted to a value of 1000. Check out the Runtime Configuration section of the PHP manual. PHP 5.3.9引入了
max_input_vars
config选项,默认值为1000。请查看PHP手册的Runtime Configuration部分。 The default value and the change log are at the top of the page. 默认值和更改日志位于页面顶部。
The value can be changed by updating the server's php.ini, adding an .htaccess file, or adding a line to httpd.conf . 可以通过更新服务器的php.ini,添加.htaccess文件或在httpd.conf中添加一行来更改该值。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.