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

前端 未结 5 1410
忘掉有多难
忘掉有多难 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 04:00

    Apache is the HTTP server. It is configured with a .htaccess file placed in the root of the website/Application means every application has its own .htaccess file.

    php.ini is the fastest way to affect PHP's functionality.

提交回复
热议问题