Home >Backend Development >PHP Tutorial >How to change the loading path of php.ini under windows
This article introduces how to change the loading path of the php.ini file in the Windows environment. Friends in need can refer to it.
Under Windows, to change the php.ini loading path, just add a piece of code to the WEB server configuration file. Take the apache server as an example, find the apache configuration file http.conf, search for "ServerRoot "E:/phpserver/apahce"", change the line, and add: PhpIniDir “E:/phpserver/php” Restart apache and check the phpinfo() function. You can see the loading path on line 7. It’s so simple, haha. |