开发者

what happens if php.ini is missing?

开发者 https://www.devze.com 2023-01-20 20:38 出处:网络
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 (non

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 ;)

0

精彩评论

暂无评论...
验证码 换一张
取 消