Home >Backend Development >PHP Tutorial >sublime runs php code directly

sublime runs php code directly

WBOY
WBOYOriginal
2016-07-28 08:26:162822browse

Only simple configuration is required for operation.

First configure the php environment variables

 sublime 直接运行php代码

After the configuration is completed, open sublime

 sublime 直接运行php代码

Click on the new build system

{  
    "cmd": ["php", "$file"], 
    "file_regex": "php$",  
    "selector": "source.php" 
}

Enter the above code to save and change the file name to PHP.sublime-build

After saving, you will find that there will be one more php. Mine has been configured.

Open the php file and use the shortcut key ctrl+B to run the code

The above introduces how sublime can directly run PHP code, including aspects of it. I hope it will be helpful to friends who are interested in PHP tutorials.

Statement:
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
Previous article:The use of global in phpNext article:The use of global in php