How to find my php.ini in my webhost?

浪尽此生 提交于 2019-12-25 05:22:37

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!