本文的例子告诉yiic命令php.exe不是内部或外部命令分享给大家的参考解决方案。具体方法如下:

运行yiic webapp在CMD如果PHP文件。不是一个内部命令,它是:原因是一找不到php.exe。有自己的yiic.bat。

Resolvent:

php.exe。不能直接执行,因为不添加环境变量。

在变量编辑器的值中右击我的计算机属性-高级>环境变量系统变量路径,添加以下2个可执行文件,方便和直接调用。

变量值:C: wamps bin PHP php5.3.8 ;E: PHP phpnow htdocs Yii框架

方法二:

Because the cause of this problem is that Yii's own yiic.bat cannot find php.exe, so you can open the yii/framework/yiic.bat modification with a text editor:

复制代码如下:如果% php_command %设置php_command = php.exe= =

复制代码代码如下:如果% php_command %设置php_command = D:服务器 bin PHP php5.3.10 php.exe= =

然后yiic webapp的工作是可以在cmd重新运行。

希望本文有助于基于Yii框架的PHP程序设计人。