Home > Article > Backend Development > where is the php file
Where is the php file? How to check where the PHP configuration file php.ini is?
Create a new PHP document. The purpose of this document is to detect the environment configuration of PHP. Example:
<?php phpinfo();
Save the above content in the browser Check the output information
The above information is the configuration information of PHP. Find on this page: Loaded Configuration File
The red box is php. The specific path of ini
If you configure PHP environment variables, you can use the second method,
Open the CMD window and enter: php -i | findstr php.ini
After pressing the Enter key to execute, you can also get the path to the php.ini configuration file
For more PHP related knowledge, please visit PHP Chinese website!
The above is the detailed content of where is the php file. For more information, please follow other related articles on the PHP Chinese website!