'“php.exe”' is not recognized as an intern

2019-01-29 07:32发布

When I run the command

D:\STUDIES\xampp\htdocs\yii\trackstar\protected>yiic migrate create create_project_table

in cmd it says

'"php.exe"' is not recognized as an internal or external command, operable program or batch file" 

Any idea ?

标签: php yii
2条回答
forever°为你锁心
2楼-- · 2019-01-29 07:52

You also might need to add ".PHP" to your PATHEXT environment variable. See http://php.net/manual/en/install.windows.commandline.php

查看更多
啃猪蹄的小仙女
3楼-- · 2019-01-29 07:59

set environment variable path like follow....

path :=>...;D:\STUDIES\xampp\php;D:\STUDIES\xampp\yii\yiiframework;

or set proper path (based on your dir structure) like above....

查看更多
登录 后发表回答