PHP.ini is very useful and it is a configuration file that is used to customize behavior of PHP at runtime.
The configuration file (php.ini) is read when PHP starts up. For the server module versions of PHP, this happens only once when the web server is started. For the CGI and CLI versions, it happens on every invocation.
You can change the settings in your web server configuration with php_flag
, php_admin_value
and php_admin_flag
as well.
In case of Apache server some configuration settings can be changed using .htaccess files, but the usage is restricted to php_flag
.