Home >Development Tools >sublime >Sublime Text 3 executes the configuration process of PHP files

Sublime Text 3 executes the configuration process of PHP files

藏色散人
藏色散人forward
2019-11-06 14:00:384616browse

The following section will introduce the configuration process of Sublime Text 3 to execute PHP files in the introductory tutorial column of sublime. I hope it will be helpful to friends in need!

Sublime Text 3 executes the configuration process of PHP files

Step 1: Configure system variables

Take the WAMPSERVER integration package as an example. The path of PHP is: D:wampbinphpphp7.0.10, as shown below:

Sublime Text 3 executes the configuration process of PHP files

#Check whether the above configuration is successful, as shown below:

Sublime Text 3 executes the configuration process of PHP files

Step 2: Configure PHP compilation

Open Sublime Text 3, as shown below:

Sublime Text 3 executes the configuration process of PHP files

Save the default content:

{
    "shell_cmd": "make"
}
替换为以下内容:
{ 
    "cmd": ["php", "$file"],
    "file_regex": "php$", 
    "selector": "source.php" 
}

and save it in the default location, and name the file: php .sublime-build

Step 3: Test

In Sublime Text 3, press the shortcut key combination CTRL B to execute the PHP file, as shown in the figure below:

Sublime Text 3 executes the configuration process of PHP files

The above is the detailed content of Sublime Text 3 executes the configuration process of PHP files. For more information, please follow other related articles on the PHP Chinese website!

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