Home  >  Article  >  Backend Development  >  What should I do if php does not have a php.ini file?

What should I do if php does not have a php.ini file?

coldplay.xixi
coldplay.xixiOriginal
2020-08-13 15:05:255893browse

The solution to the problem that php does not have a php.ini file: first create a new PHP document and view the output information in the browser; then find the specific path of [php.ini] and open the cmd window; finally enter [php - i | findstr php.ini].

What should I do if php does not have a php.ini file?

Solution to the problem that php does not have a php.ini file:

1. Create a new PHP document. The purpose is to detect the environment configuration of PHP.

What should I do if php does not have a php.ini file?

#2. Save the above content and view the output information in the browser.

What should I do if php does not have a php.ini file?

#3. The above information is the configuration information of PHP. Look for: Loaded Configuration File on this page. The specific path of php.ini is in the red box.

What should I do if php does not have a php.ini file?

4. Open the CMD window and enter: php -i | findstr php.ini.

What should I do if php does not have a php.ini file?

#5. After pressing the Enter key to execute, you can also get the path to the php.ini configuration file.

What should I do if php does not have a php.ini file?

Related learning recommendations: php programming (video)

The above is the detailed content of What should I do if php does not have a php.ini file?. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn