This article mainly introduces the yiiccommand prompt “php.exe "is not a solution for internal or external commands. it is of reference value to solve this problem by configuring environment variables and modifying the configuration file of the Yii Framework, for more information about yiiccommand, see the following document: "php.exe is not a solution for internal or external commands. The specific method is as follows:
Run yiic webapp work in CMD. if "php.exe" is not an internal command, it is like this: the original cause is that yiic.bat' with yii' cannot find php.exe.
Solution:
Php.exe cannot be executed directly due to lack of environment changes.
Right-click "my computer-" properties-"advanced-> environment variables-" system variables-"PATH-" edit "and add the following two execution files to the variable value, convenient and direct invocation.
Variable value: C: \ wamps \ bin \ php \ php5.3.8 \; E: \ php \ PHPnow \ htdocs \ yii \ framework \
Method 2:
This problem occurs because the yiic. bat of Yii cannot be found in php.exe. Therefore, you can use a text editor to open yii/framework/yiic. bat and modify it:
The code is as follows:
If "% PHP_COMMAND %" = "" set PHP_COMMAND = php.exe
Changed:
The code is as follows:
If "% PHP_COMMAND %" = "" set PHP_COMMAND = D: \ wamp \ bin \ php \ php5.3.10 \ php.exe
Then run yiic webapp work again in CMD.
I hope this article will help you design PHP programs based on the Yii Framework.