简体   繁体   English

'“php.exe”'无法识别为内部或外部命令,可运行程序或批处理文件

[英]'“php.exe”' is not recognized as an internal or external command, operable program or batch file

When I run the command 当我运行命令

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

in cmd it says cmd它说

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

Any idea ? 任何想法 ?

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.... 或者设置正确的路径(基于您的目录结构),如上所述....

You also might need to add ".PHP" to your PATHEXT environment variable. 您还可能需要在PATHEXT环境变量中添加“.PHP”。 See http://php.net/manual/en/install.windows.commandline.php 请参见http://php.net/manual/en/install.windows.commandline.php

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 'php.exe' 不是内部或外部命令,也不是可运行的程序或批处理文件 - ‘php.exe’ is not recognized as an internal or external command, operable program or batch file 当我在 Windows 上运行 composer 时,我收到一个错误“php.exe”不是内部或外部命令、可运行程序或批处理文件。 - When I run composer on Windows, I get an error of 'php.exe' is not recognized as an internal or external command, operable program or batch file.' 无法将“ php”识别为内部或外部命令,可操作程序或批处理文件 - 'php' is not recognized as an internal or external command, operable program or batch file 错误:'php'未被识别为内部或外部命令,可操作程序或批处理文件 - Error: 'php' is not recognized as an internal or external command, operable program or batch file php.exe无法识别为外部或内部命令 - php.exe is not recognized as an external or internal command 'mv'不被识别为内部或外部命令,可操作程序或批处理文件 - 'mv' is not recognized as an internal or external command, operable program or batch file 无法将“ composer”识别为内部或外部命令,可操作程序或批处理文件 - 'composer' is not recognized as an internal or external command, operable program or batch file 无法将“ phpspec”识别为内部或外部命令,可操作程序或批处理文件 - 'phpspec' is not recognized as an internal or external command, operable program or batch file 'git'不被识别为内部或外部命令,可操作程序或批处理文件 - 'git' is not recognized as an internal or external command, operable program or batch file 'C:\\wmic' 不是内部或外部命令,也不是可运行的程序或批处理文件 - 'C:\wmic' is not recognized as an internal or external command, operable program or batch file
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM