• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 361
  • 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?

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

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