What happens if php.ini is missing? Does PHP load with a default configuration? 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?
And if you want to see these default settings.. phpinfo() function in a PHP file will do the trick.
jeffkee
2010-10-18 19:43:10
Thanks for the quick response!
LeTanc
2010-10-18 20:52:30
+1
A:
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.
Marc B
2010-10-18 20:32:44