0
我试图通过PHP执行sass --update
shell_exec()
功能,并得到一个错误:如果我从手动CMD运行相同的命令PHP了shell_exec()SASS --update
H:\SERVER\htdocs\path\to\project>sass --style compressed --update sass\:deployment\css\ 'sass' is not recognized as an internal or external command, operable program or batch file.
- 它工作正常。当前文件夹是正确的 - 使用getcwd()
错误,命令只是'哪个sass'? “'其中'不被识别为内部或外部命令, 可操作的程序或批处理文件。” –
呵呵,我想在Windows上你必须用“where”代替。 https://stackoverflow.com/questions/304319/is-there-an-equivalent-of-which-on-the-windows-command-line –
是的,就是这样!它给了我道路:) –