php.exe is not recognized:create webapp(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的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!
本文标题为:php.exe 无法识别:创建 webapp
基础教程推荐
- YouTube API v3 点赞视频,但计数器不增加 2022-01-01
- 如何在 Laravel 5.3 注册中添加动态下拉列表列? 2021-01-01
- 如何替换eregi() 2022-01-01
- 在PHP中根据W3C规范Unicode 2022-01-01
- 有什么方法可以用编码 UTF-8 而不是 Unicode 返回 PHP`json_encode`? 2021-01-01
- PHP PDO MySQL 查询 LIKE ->多个关键词 2021-01-01
- 学说 dbal querybuilder 作为准备好的语句 2022-01-01
- 如何在 Laravel 中使用 React Router? 2022-01-01
- PHP 类:全局变量作为类中的属性 2021-01-01
- Cron Jobs 调用带有变量的 PHP 脚本 2022-01-01
