S
S
sorry_i_noob2019-08-22 17:55:52
PHP
sorry_i_noob, 2019-08-22 17:55:52

Why change php_ini via .htaccess, if it is possible in php via ini_set? Is there a difference?

Hello.
I found out that with .htaccess you can change some php_ini values. And I have a question. Why do it through .htaccess, if it is possible through PHP - through the ini_set command? Are there any differences in these two methods?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
SagePtr, 2019-08-22
@sorry_i_noob

Change it as you wish, but keep in mind that not all parameters can be set through ini_set (more details in the documentation ), and through .htaccess it will work only if PHP is connected as an Apache module (which is not always used and not everywhere).

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question