一、.把php加入到环境变量
二、在sublmie中新建编译系统
三、添加一下代码,修改成php当前的目录地址,保存在默认的路径下,命名为php.sublime-build
{ "cmd": ["D:/phpstudy/PHPTutorial/php/php-5.6.27-nts/php.exe", "$file"], "file_regex": "^(...*?):([0-9]*):?([0-9]*)", "selector": "source.php" }
四、编写好php文件,按Ctrl+B 就可以看到运行结果