The PHP framework YII framework uses the YIIC command when prompted "Php.exe" is not an internal or external command, yiiyiic_php tutorial

Source: Internet
Author: User

The PHP framework YII framework uses the YIIC command to prompt that "php.exe" is not an internal or external command, YIIYIIC


Solution Solutions
Yii/framework/yiic.bat, modify

If "%php_command%" = = "" Set Php_command=php.exe
If "%php_command%" = = "" Set php_command=D:\wamp\php\php.exe


Turn off the DOS window and hit input  Yiic webapp  XX

"Phpexe" is not an internal or external command when using the YIIC command with the PHP Framework YII framework, and is not how to solve it?

It is this: the reason is that Yii comes with the yiic.bat can not find Php.exe.
Workaround: Open Yii/framework/yiic.bat with notepad++, modify
If "%php_command%" = = "" Set Php_command=php.exe
→→→if "%php_command%" = = "" Set Php_command=d:\wamp\php\php.exe

My fix is to change to
If "%php_command%" = = "" Set Php_command=c:\wamp\bin\php\php5.4.3\php.exe

PHP yii Framework

Enter

My Computer-Properties-advanced-environment variables

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

http://www.bkjia.com/PHPjc/844683.html www.bkjia.com true http://www.bkjia.com/PHPjc/844683.html techarticle PHP Frame YII Framework uses the YIIC command to Prompt "Php.exe" is not an internal or external command, YIIYIIC solution Yii/framework/yiic.bat, modify if "%php_command%" = = "" Set Php_command ...

  • Contact Us

    The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

    If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.