[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 348
  • Last Modified:

Can I increase the max vars of my POST array without editing the php.ini file?

I have a HTML form with over 200 inputs.  It appears the max var for my $_POST array is set at 200.  Is there a way to temporarily adjust the max vars without editing php.ini?  I am working on a shared server.
1 Solution
You will have to ask your web hosting provider to up the limit, as - if I remember correctly - this is to do with a security patch your host has deployed named suhosin - your host needs to increase the two values below to over 200 for your script to function (obviously) but unfortunately you can't (or at least shouldn't) be able to do it yourself. :(
suhosin.post.max_vars = 2000
suhosin.request.max_vars = 2000

Open in new window

Rags02Author Commented:
@DarkFish:  thanks.  I was hoping there was a function that would temporarily call / manipulate the Suhosin settings.  But it's not looking like there is.  Which makes sense I guess...  Thanks for clarifying.
Can you break your form into parts so fewer post vars get submitted at one time? With one form that I created, I have a form with all the registration information for our website and after you click on submit, you get the payment form. Maybe you could do something similar with your form?


Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Tackle projects and never again get stuck behind a technical roadblock.
Join Now