what happens if php.ini is missing?
What happens if php.ini is missing? Does PHP load with a default configuratio开发者_C百科n? In phpinfo(), it says the configuration file path is /etc, however it also says Loaded Configuration File (none). I went into /etc, and noticed there is no php.ini, only php.ini.default. PHP is working though, so I'm guessing it must load with default settings. Can anybody confirm this for me?
PHP has what amounts to a php.ini compiled into it. The php.ini file on the system is there merely to override those pre-compiled defaults. If there's no php.ini, the compile-time values are in charge.
It does load default settings, yes.
if php.ini is missing , u can choose one of this files and rename it to php.ini => this will give u the same results
php.ini-development php.ini-production
I wish this can help ;)
精彩评论