How to modify php.ini with phpstorm: 1. Find the php.ini file in the root directory of the php installation directory; 2. Right-click the menu after finding php.ini, find "Open with" and select phpstorm; 3. Just modify the content of php.ini directly.
The operating environment of this article: Windows 7 system, phpstorm 2020 version, Dell G3 computer.
How to modify php.ini with phpstorm?
Asking this question, I guess it is because I am not sure about the php configuration file php.ini.
This file is in the root directory of the PHP installation directory, please find it.
After finding php.ini, right-click the menu, find "Open with" and select Notepad, subline, editplus, notepad, phpstorm. You can also directly select "Open", and then select other opening methods if it cannot be opened correctly. If there is no phpstorm in the opening method, please drag php.ini directly from the folder to the center of the phpstorm editor to edit it.
If you don’t know where php.ini is, follow my method:
Create a new php file and enter phpinfo();
Visit the php in the browser to view , find
so you know the path.
If you cannot change access, it means there is something wrong with your php test server configuration.
phpstorm is a development tool for editing code. As long as it is ordinary text, it is not limited to php. It can be opened, for example: .txt, .html, .asp, .xml. .
php is the interpreter of the php script language, and php.ini is the configuration file of the script language interpreter.
Please note the difference between phpstorm and php.
Please find the source of your problem.
It is because your test server is not installed correctly;
You cannot find the path to php.ini;
How to open php.ini through phpstorm, you can do it in the menu bar Find the "File" -> "Open" selection from the php installation root directory, some times it is not here either, the exact answer is in phpinfo().
Recommended learning: "PHP Video Tutorial"
The above is the detailed content of How to modify php.ini in phpstorm. For more information, please follow other related articles on the PHP Chinese website!