如何在Sublime text中运行PHP文件

将php加入到系统环境变量,cmd  php -v

转自:http://blog.csdn.net/xxhsu/article/details/30757229

一、将PHP安装目录放如环境变量PATH

二、添加PHP的build system

1)进入如下菜单:


2)弹出内容如下:

{
    "cmd": ["make"]
}

修改为:

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

3)保存在默认的目录下即可,注意修改文件名为 php.sublime-build 。

执行快捷键为Ctrl+B。

posted @ 2016-06-23 00:35  SandKing  阅读(10)  评论(0)    收藏  举报  来源