What is the difference between php.ini and .htaccess?

前端 未结 5 1404
忘掉有多难
忘掉有多难 2021-02-06 02:59

Assume if I want to change the value of

php_value post_max_size 20M in .htaccess

post_max_size 20M in php.ini

Both will do same operation. So

5条回答
  •  执笔经年
    2021-02-06 03:38

    Configuration values put in PHP.ini is for the entire server, it gets applied to all the sites running on that server. Where as configuration values put in .htaccess is for individual sites.

提交回复
热议问题