YIIC command Prompt "Php.exe" is not a workaround for internal or external commands _php instance

Source: Internet
Author: User
Tags yii

The example of this article tells the YIIC command when the "Php.exe" is not internal or external command solutions, shared for everyone to reference. The specific methods are as follows:

In cmd run YIIC webapp work if the newspaper "Php.exe" is not an internal command, is this: The reason is that Yii's own yiic.bat can not find Php.exe.

Workaround:

Php.exe cannot be executed directly because the environment variable is not joined.

Right-click "My Computer-" Properties-"advanced-> environment variable-" system variable-"path-" edit ", add the following 2 execution files in the variable value to facilitate direct call execution.

Variable value: C:\wamps\bin\php\php5.3.8\; E:\php\PHPnow\htdocs\yii\framework\

Method Two:
because the cause of this problem is that Yii's own yiic.bat cannot find Php.exe, you can open Yii/framework/yiic.bat modifications with a text editor:

Copy Code code as follows:
If "%php_command%" = "" Set php_command= Php.exe

To

Copy Code code as follows:
If "%php_command%" = "" Set Php_command=d:\wamp\bin\php\php5.3.10\php.exe

Then in CMD rerun Yiic webapp work OK.

I hope this article will help you with the PHP program design based on the YII framework.

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.