php.exe 无法识别:创建 webapp [英] php.exe is not recognized:create webapp

查看:24
本文介绍了php.exe 无法识别:创建 webapp的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试新安装的 yii 框架,并尝试通过命令行编译我的第一个 web 应用程序.当我运行 yiic webapp ../testdrive 时,我在控制台中收到此错误:

I am toying with my new install of yii framework, and trying to compile my first webapp through the command line. when I run yiic webapp ../testdrive i receive this error in my console:

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

我需要编辑我的 php.ini 文件吗?

Do I need to edit my php.ini file?

我目前在 Windows 7 上的 WAMP 网络服务器上运行

I am currently running on WAMP Webserver on Windows 7

推荐答案

你需要在你的 php.exe 中的 `yiiframeworkyiic.bat

You need to add complete path in your php.exe in `yiiframeworkyiic.bat

例如在我的情况下是如果

for example in my case it is if

"%PHP_COMMAND%" == "" 设置 PHP_COMMAND=C:wampinphpphp5.3.8php.exe

这篇关于php.exe 无法识别:创建 webapp的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆