![](/img/trans.png)
[英]‘php.exe’ is not recognized as an internal or external command, operable program or batch file
[英]'“php.exe”' is not recognized as an internal or external command, operable program or batch file
當我運行命令
D:\STUDIES\xampp\htdocs\yii\trackstar\protected>yiic migrate create create_project_table
在cmd
它說
'"php.exe"' is not recognized as an internal or external command, operable program or batch file"
任何想法 ?
設置環境變量路徑,如下面....
path :=>...;D:\STUDIES\xampp\php;D:\STUDIES\xampp\yii\yiiframework;
或者設置正確的路徑(基於您的目錄結構),如上所述....
您還可能需要在PATHEXT環境變量中添加“.PHP”。 請參見http://php.net/manual/en/install.windows.commandline.php
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.