Home > Article > Backend Development > Where are php configuration files stored?
The method to view the PHP configuration file path is as follows:
Method 1:
1. Create a new PHP document. The purpose of this document is to detect PHP Environment configuration, example:
phpinfo();
? >
2. Save the above content and view the output information in the browser
3. The above information is PHP configuration information, search on this page: Loaded Configuration File
The red box is the specific path of php.ini
If configured If you have PHP environment variables, you can use the second method:
1. Open the CMD window and enter: php -i | findstr php.ini
##2 , after pressing the Enter key to execute, you can also get the path to the php.ini configuration file For more PHP related technical articles, please visitPHP Tutorialcolumn for learning!
The above is the detailed content of Where are php configuration files stored?. For more information, please follow other related articles on the PHP Chinese website!