Home >Development Tools >phpstorm >Detailed explanation of the steps for configuring the PHP running environment for the first time with PHPstorm

Detailed explanation of the steps for configuring the PHP running environment for the first time with PHPstorm

藏色散人
藏色散人forward
2021-06-26 15:08:4111781browse

The first installationphpstormcannot run the PHP file because the environment is not configured good.

Below I will configure the PHP operating environment with PHPstorm and wampserver
Note: The prerequisite is that your wampserver or other servers can run normally
Detailed explanation of the steps for configuring the PHP running environment for the first time with PHPstorm
Detailed explanation of the steps for configuring the PHP running environment for the first time with PHPstorm

1. After the installation is complete, open PHPstorm and select the upper left corner file->settings
Detailed explanation of the steps for configuring the PHP running environment for the first time with PHPstorm

2. Select languages&frameworks->php
Detailed explanation of the steps for configuring the PHP running environment for the first time with PHPstorm

3. Click on the back
Detailed explanation of the steps for configuring the PHP running environment for the first time with PHPstorm## 4. Click on
±>local path…
Detailed explanation of the steps for configuring the PHP running environment for the first time with PHPstorm 5. Click the
folder icon after PHP executable
Detailed explanation of the steps for configuring the PHP running environment for the first time with PHPstorm 6. Select you
php.exe in the PHP folder in the bin directory under wampserver, click ok (my file path: D:\wamp64\bin\php\php5.6.16\php.exe)
Detailed explanation of the steps for configuring the PHP running environment for the first time with PHPstorm 7. Next, you can test whether PHP can run. For example, I output a multiplication table

<?php /**
 * Created by PhpStorm.
 * User: 1368834663
 * Date: 2019/3/8
 * Time: 16:24
 */
for($i=1;$i<=9;$i++){
    for($j=1;$j<=$i;$j++){
        echo $i."*".$j."=".$i*$j."  ";
    }
    echo "<br>";
}

Detailed explanation of the steps for configuring the PHP running environment for the first time with PHPstorm

The above is the detailed content of Detailed explanation of the steps for configuring the PHP running environment for the first time with PHPstorm. For more information, please follow other related articles on the PHP Chinese website!

Statement:
This article is reproduced at:csdn.net. If there is any infringement, please contact admin@php.cn delete