I use the phpinfo () function to view the PHP configuration environment, the directory hints about the configuration file (php.ini) are as follows:
Configuration File (php.ini) Path C:\WINDOWS
Loaded Configuration File C:\\php\php.ini
May I ask you, I do not quite understand why the path of the configuration file is C:\Windows, but the configuration file loaded is the configuration file in the C:\PHP\ directory, do not need to set the configuration file path, default in the PHP program directory to find it?
Reply to discussion (solution)
Priority question, see if Windows has, can't find the path in the enrolled configuration file
This is not a problem, the default C:\Windows, but there is no php.ini configuration file under Windows, then retrieve its own file directory, found in its own directory has a php.ini configuration file, and then loaded it.
If you feel this is not good, you can cut directly, and then paste into the C:\windows inside, so load is C:\windows\php,ini
Personally, I think we should put the php.ini file
Configuration File (php.ini) Path C:\WINDOWS variable Replace
Personally, I think we should put the php.ini file
Configuration File (php.ini) Path C:\WINDOWS variable Replace
I think it's okay to ignore it, it's now loaded correctly, right? It's no use studying this.
Copy the php.ini to Windows
For Windows systems
Configuration File (php.ini) Path C:\WINDOWS
Represents the location where the php.ini is loaded by default
Loaded Configuration File C:\PHP\php.ini
Represents the location where the php.ini is actually loaded
Since it is not the default location, it is of course necessary to specify the