一、.把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 就可以看到運行結果