Figure out the path of the PHP configuration file php. ini,
Recently, some bloggers asked which directory does php. ini exist? Or why does the modification take effect after php. ini? Based on the above two questions, I think it is necessary to teach the bloggers who are new to PHP how to find the path directory for PHP to call php. ini.
Generally, PHP is installed on two platforms: Linux and Windows. Windows platforms are mostly used, because the current installation packages are very convenient, such as appserv and wamp. Linux also has an LNMP one-key installation package, which is very convenient. Since these installations are simplified, it is naturally difficult for many bloggers to understand php after the environment has been installed. directory in which ini is stored, or php is found in a directory. the INI file, but I don't know whether it is the one called by the PHP program.
We can use phpinfo to find the php. ini path.
Create a php page and enter:
[Code]
<? Php phpinfo ();?>
[Code]
Save and exit
Access the page using a browser and you will see a PHP configuration page.
Find the Configuration File (php. ini) Path line.
The value on the right/usr/local/webserver/php/etc is the directory where the php. ini file is located.
After the last modification, remember to restart the relevant program to take effect.