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

Sublime Text 3 executes the configuration process of PHP files

藏色散人
Release: 2019-11-06 14:00:38
forward
4618 people have browsed it

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" 
}
Copy after login

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!

Related labels:
source:segmentfault.com
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template