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

Posted on 2008-11-04
Last Modified: 2013-12-13
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.
Question by:Rags02
    LVL 3

    Accepted 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] = 2000
    suhosin.request.max_vars = 2000

    Open in new window


    Author Comment

    @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.
    LVL 17

    Expert Comment

    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

    6 Surprising Benefits of Threat Intelligence

    All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

    Join & Write a Comment

    Suggested Solutions

    This is a general how to create your own custom plugin system for your PHP application that you designed (or wish to extend a third party program to have plugin functionality that doesn't have it yet).  This is not how to make plugins for existing s…
    These days socially coordinated efforts have turned into a critical requirement for enterprises.
    Explain concepts important to validation of email addresses with regular expressions. Applies to most languages/tools that uses regular expressions. Consider email address RFCs: Look at HTML5 form input element (with type=email) regex pattern: T…
    The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.

    754 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    21 Experts available now in Live!

    Get 1:1 Help Now