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

Sublime里直接运行PHP配置方法

WBOY
Release: 2016-06-06 20:16:32
Original
3202 people have browsed it

本文介绍了配置sublime使其能直接运行php的方法,非常的实用,这里推荐给大家,希望对大家有所帮助。

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

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

2:设置Sublime

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

        添加如下配置:


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

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

3.运行

ctrl + b 运行

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

Related labels:
source:php.cn
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 Recommendations
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template