Home  >  Article  >  Backend Development  >  How to solve the problem that cmd php is not an internal command

How to solve the problem that cmd php is not an internal command

藏色散人
藏色散人Original
2020-09-28 10:50:243453browse

The solution to the problem that cmd php is not an internal command: first check the local PHP version; then copy the location link of phpStudy; then enter the "environment variables" in the computer; finally put the copied address link into the environment variable. Can.

How to solve the problem that cmd php is not an internal command

Recommended: "PHP Video Tutorial"

cmd command php is not an internal command phpStudy Solution

1. First open phpStudy to see your local PHP version

How to solve the problem that cmd php is not an internal command

2. Open the location of the current version in phpStudy and copy the link. For example, I Install on drive E E:\app\phpStudy\PHPTutorial\php\php-5.6.27-nts (just copy to the directory is enough) as shown in the figure:

How to solve the problem that cmd php is not an internal command

3 , The company computer is win7. Right-click My Computer--->Properties----> Advanced System Settings--->Environment Variables. Add the paragraph just now to the environment variables

How to solve the problem that cmd php is not an internal command

4. Okay, now open cmd and type php -v, it should work

5. I guess your next step is to type the following code

php think make:controller index/Stu

How to solve the problem that cmd php is not an internal command

Okay, bloggers are also learning thinkPhp. If you are self-study, you may have to go through the pitfalls I have stepped on,

The above is the detailed content of How to solve the problem that cmd php is not an internal command. For more information, please follow other related articles on the PHP Chinese website!

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