When the PHP framework Yii framework uses the yiiccommand, the prompt "“php.exe" is not an internal or external command, yiiyiic
Solution
Yii/framework/yiic. bat, modify
If "% PHP_COMMAND %" = "" set php_command#php.exe
If "% PHP_COMMAND %" = "" set PHP_COMMAND =D: \ wamp \ php \ php.exe
Close the dos window and then input yiic webapp XX
When the PHP framework Yii framework uses yiic commands, the system prompts that "phpexe" is not an internal or external command. How can this problem be solved?
The reason is that the yiic. bat of Yii cannot find php.exe.
Solution: use notepad ++ to open yii/framework/yiic. bat and modify
If "% PHP_COMMAND %" = "" set php_command#php.exe
→ If "% PHP_COMMAND %" = "" set PHP_COMMAND = D: \ wamp \ php \ php.exe
Modify
If "% PHP_COMMAND %" = "" set PHP_COMMAND = C: \ wamp \ bin \ php \ php5.4.3 \ php.exe
Php yii framework
Enter
My computer-properties-advanced-Environment Variables
Set PATH to add the PATH of your php.exe.