Home  >  Article  >  Backend Development  >  PHP framework Yii framework prompts "php.exe" is not an internal or external command when using the yiic command, yiiyiic_PHP tutorial

PHP framework Yii framework prompts "php.exe" is not an internal or external command when using the yiic command, yiiyiic_PHP tutorial

WBOY
WBOYOriginal
2016-07-13 10:23:05881browse

PHP framework Yii framework When using the yiic command, it prompts that "php.exe" is not an internal or external command, yiiyiic

解决方案
yii/framework/yiic.bat,修改<br /><br />if "%PHP_COMMAND%" == "" set PHP_COMMAND=php.exe<br />if "%PHP_COMMAND%" == "" set PHP_COMMAND=<span><strong>D:\wamp\php\php.exe<br /><br /><br /></strong></span>
关掉dos窗口 再打 输入  yiic webapp  XX

PHP framework Yii framework When using the yiic command, it prompts that "phpexe" is not an internal or external command. How to solve it?

It's like this: The reason is that the yiic.bat that comes with Yii cannot find php.exe.
Solution: Use notepad++ to open yii/framework/yiic.bat and modify
if "%PHP_COMMAND%" == " " set PHP_COMMAND=php.exe
→→→ if "%PHP_COMMAND%" == "" set PHP_COMMAND=D:\wamp\php\php.exe

I just changed it to
if "%PHP_COMMAND%" == "" set PHP_COMMAND=C:\wamp\bin\php\php5.4.3\php.exe

php yii framework

Go to

My Computer-Properties-Advanced-Environment Variables

Set PATH and add the path to your php.exe.

www.bkjia.comtruehttp: //www.bkjia.com/PHPjc/844683.htmlTechArticlePHP framework Yii framework When using the yiic command, it prompts that "php.exe" is not an internal or external command, yiiyiic solution yii /framework/yiic.bat, modify if "%PHP_COMMAND%" == "" set PHP_COMMAND...
Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn