问题
I'm having an error log that says:
Unknown: Input variables exceeded 1000. To increase the limit change max_input_vars in php.ini.
I want to change the settings on my php.ini on my webhost but i cant find it.
回答1:
If you are on a shared hosting, it's most likely that you do not have access to the php.ini
However, you can change the desired value by adding this to your .htaccess:
php_value max_input_vars 3000 //you can change 3000 to whatever suits your needs
回答2:
If you dont have have php.ini access add these to your .htaccess
php_value max_input_vars 3000
php_value suhosin.get.max_vars 3000
php_value suhosin.post.max_vars 3000
php_value suhosin.request.max_vars 3000
来源:https://stackoverflow.com/questions/25553203/how-to-find-my-php-ini-in-my-webhost