Search code examples
phpxampp

Increasing max_input_var in php.ini in XAMPP


I need to increase max_input_var in php.ini. I am ruining xampp php version 5.6.3

I have several website folder on my local, and I am confused if I need to have php.ini file per website or its a single master file.

I found php.ini file in xampp/php folder on localhost. I edited and increased it there, restarted but php.info still says the default value 1000. I needed to be 2000 or more.

I guess my next question is how should I do this from CPanel when the site is live?


Solution

  • Try this in you .htaccess file:

    php_value max_input_vars 2000
    

    Or add this function in php code:

    ini_set('max_input_vars', 2000);