The example of this article tells the YIIC command when the "Php.exe" is not internal or external command solutions, shared for everyone to reference. The specific methods are as follows:
In cmd run YIIC webapp work if the newspaper "Php.exe" is not an internal command, is this: The reason is that Yii's own yiic.bat can not find Php.exe.
Workaround:
Php.exe cannot be executed directly because the environment variable is not joined.
Right-click "My Computer-" Properties-"advanced-> environment variable-" system variable-"path-" edit ", add the following 2 execution files in the variable value to facilitate direct call execution.
Variable value: C:\wamps\bin\php\php5.3.8\; E:\php\PHPnow\htdocs\yii\framework\
Method Two:
because the cause of this problem is that Yii's own yiic.bat cannot find Php.exe, you can open Yii/framework/yiic.bat modifications with a text editor:
Copy Code code as follows:
If "%php_command%" = "" Set php_command= Php.exe
To
Copy Code code as follows:
If "%php_command%" = "" Set Php_command=d:\wamp\bin\php\php5.3.10\php.exe
Then in CMD rerun Yiic webapp work OK.
I hope this article will help you with the PHP program design based on the YII framework.