Home >php教程 >php手册 >Sublime里直接运行PHP配置方法,sublime直接运行

Sublime里直接运行PHP配置方法,sublime直接运行

WBOY
WBOYOriginal
2016-06-13 09:19:59909browse

Sublime里直接运行PHP配置方法,sublime直接运行

1.把PHP添加到系统环境变量:

环境变量加好了的效果如下:

2:设置Sublime

        选中:Tools -> Build System -> New Build System....

        添加如下配置:

{  <br />    "cmd": ["php", "$file"], <br />    "file_regex": "php$",  <br />    "selector": "source.php" <br />}

ctrl + s 保存 命名为 : PHP.sublime-build

3.运行

ctrl + b 运行

方法是不是很简单呢,却很实用哦,后续再更新一些其他软件里运行php的配置方法。

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