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

x
  • 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.
0
Rags02
Asked:
Rags02
1 Solution
 
DarkFishCommented:
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]
suhosin.post.max_vars = 2000
suhosin.request.max_vars = 2000

Open in new window

0
 
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.
0
 
nanharbisonCommented:
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?

0

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