
一、将PHP安装目录放如环境变量PATH
二、添加PHP的build system
1)进入如下菜单:
2)d出内容如下:
{
"cmd": ["make"]
}
修改为:
{
"cmd": ["php", "$file"],
"file_regex": "php$",
"selector": "sourcephp" }
3)保存在默认的目录下即可,注意修改文件名为 phpsublime-build 。
执行快捷键为Ctrl+B。
可以在 Sublime Text 3 中创建 PHP 的 build system,这样就可以利用 ctrl+b 命令快速运行。
添加 PHP 的 build system,如图所示, Tools->Build System-> New Build System :
修改为:
{
"cmd": ["php", "$file"],
"file_regex": "php$",
"selector": "sourcephp"
}
保存在默认的目录下即可,注意修改文件名为 phpsublime-build 。
以上就是关于如何在Sublime text中运行PHP文件全部的内容,包括:如何在Sublime text中运行PHP文件、sublime text 3中可以编写php吗怎么运行、等相关内容解答,如果想了解更多相关内容,可以关注我们,你们的支持是我们更新的动力!
欢迎分享,转载请注明来源:内存溢出
微信扫一扫
支付宝扫一扫
评论列表(0条)