Why are there two php. ini paths on the page displayed by phpinfo ??? Which of the two decides the location of the php. ini file? PHPcodeConfigurationFile (php. ini) PathC: \ WINDOWSLoadedConf phpinfo () shows why there are two php. ini paths ???
Which of the two decides the location of the php. ini file?
PHP code
Configuration File (php.ini) Path C:\WINDOWS Loaded Configuration File D:\MyEnv\php5\php.ini
When I delete both php. ini files in the two paths, it is displayed:
PHP code
Configuration File (php.ini) Path C:\WINDOWS Loaded Configuration File (none)
Then use the phpinfo () function to find that the output is still normal. what is the problem? Isn't it able to read the configuration file? Why not report an error?
Thank you !!!
------ Solution --------------------
When running PHP in WINDOWS, find the configuration file in C: \ WINDOWS. If no configuration file is found, find it in the PHP installation directory, if none of the two directories are found, use the default PHP configuration environment. Therefore, you only need to have at least one appropriate PHP configuration file in the C: \ WINDOWS or PHP installation directory.
------ Solution --------------------
Do not need to be shown if it already exists?
I don't know. I haven't tested it.