Solution for phpstorm not having php.ini: 1. Open the Wampserver directory; 2. Find "php.ini-development", make a copy, and change the entire file name to "php.ini"; 3. , You can view the configuration in the "php.ini" file by executing "phpinfo();".
The operating environment of this tutorial: Windows 10 system, php7.1.7 version, DELL G3 computer
What should I do if phpstorm does not have php.ini? ?
PhpStorm builds PHP environment and PHP.ini loss problem
##>PhpStrom
First of all, you need aPhpStorm software. This is a commercial software. Compared with Eclipse or other software, the price is relatively daunting. No
By the way, the company that developed this software, JetBrain (Rocket Brain orz), is the company that launched Kotlin. Their other productIntelliJ IDEA (although I think this software The name looks like gibberish), I personally feel it is the best integrated development environment on the market, it is small and smart, I simply can’t put it down. Android Studio is actually based on this software. If you are used to Android Studio and fall in love with the code completion or UI in AS, then you might as well throw away your Eclipse and use IDEA to develop JAVA, JAVA WEB, and Python. Bar.
>Wampserver
This thing is a software developed by the French, mainly to solve various troublesome problems in configuring the PHP environment. Many manually configured files have been automated. When downloading, you will be asked to fill out a form or something, but you are not actually required to do so. There will be a line of small orange text on it telling you that you can skip filling out the form and download directly. Just pay attention. (Select the number of digits of the machine)## Select the installation directory, and then proceed to next.
After installation, you will be told which browser and text editor to choose as the default software. Simply put, it means which software to use to open the corresponding php web page (i.e. .php or .phtml).
The selection method is very simple, just find the .exe of the corresponding software. If you don't know where the path of the software is, right-click the shortcut of the corresponding software on the desktop - Properties - Open File Location.
>Configure environment Open your PhpStorm and register (see above). File-Setting in the upper left corner-Configure CLI Interpreter, as shown in the figure:
Select PHP.exe in the installation directory when Wampserver was just installed:
Sometimes it will prompt that php.ini cannot be found:
At this time, open the Wampserver directory, find php.ini-development, and make a copy. Change the entire file name to php.ini:
## Then in the interface where you just configured the CLI Interpreter, click the "refresh button".
>Test your first PHPCreate a new PHP project and create a PHP File# under the project ## Enter the following code:
<?php echo "Helloworld"; phpinfo();
A Helloworld and the configuration in the corresponding php.ini file will be output.
Recommended study: "PHP Video Tutorial"
The above is the detailed content of What should I do if phpstorm doesn't have php.ini?. For more information, please follow other related articles on the PHP Chinese website!