new limit within php: 1000 fields per POST. Does someone know, if the number can be influenced?

后端 未结 9 1979
北荒
北荒 2020-11-27 04:53

In newer PHP-Versions the count of input-fileds per formula (POST) will be limited to 1000 (unverified information). It seams that this limit is already installed in certain

相关标签:
9条回答
  • 2020-11-27 05:14

    It's always good to just stringify some of the data you're submitting – rather than change this limit within PHP. For example, if you're sending in stuff via Ajax, or via a form field, just stringify the field that's causing the problem.

    The limit is on the 'number' of fields and not the 'length', if that makes sense.

    0 讨论(0)
  • 2020-11-27 05:17

    If you are using Dreamhost like me you can create a phprc file inside /home/<<siteuser>>/.php/<<X.Y>> (siteuser = the user your site runs under, and X.Y = php version eg 7.2)

    Inside the phprc I added max_input_vars = 2000

    You must then kill all the PHP processes to take effect using killall -9 php72.cgiif you were on PHP version 7.2

    More info here https://help.dreamhost.com/hc/en-us/articles/214200668-How-do-I-create-a-phprc-file-via-SSH-

    0 讨论(0)
  • 2020-11-27 05:27

    Just wanted to summarize and point out a few things:

    1) Limitations can be PHP as mentioned above.

    2) Limitations can be web server also mentioned above.

    3) Suhosin limitations only apply if it is installed. Settings are changed in php.ini

    4) Beware of browser URL length limits if you attempt to submit that much data in the URL

    Restart your web server after changing any server settings.

    0 讨论(0)
提交回复
热议问题