Home >Backend Development >PHP Tutorial >phpini loading location
The php.ini file cannot be found. I loaded it under WINDOS, but it could not be found. Then I forced -c to search and it was OK. I was thinking about why the ini file under window was loaded. 1. There may be a default path, 2. There may be no path and it is loaded by default.
Problem solution: http://php.net/manual/zh/configuration.file.php, which has a detailed introduction to the reference problem of php.ini. Find the registry, use Run-》regedit, and open the registration table hkey-local-machine-software-php, but php in my computer is installed in the PHPstudy integrated environment, so it is not in the registry, so the search path of ini is based on the priority
There is also a location to load the configuration file: it should be the php.ini file under the php used, but it cannot be found, and the php.ini file in D:\360 Download is automatically loaded. Rename the loaded file to solve the problem
Copyright statement: This article is an original article by the blogger and may not be reproduced without the blogger's permission.
The above introduces the loading location of phpini, including the relevant content. I hope it will be helpful to friends who are interested in PHP tutorials.