Home > Article > Backend Development > How to solve the problem that cmd php is not an internal command
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.
Recommended: "PHP Video Tutorial"
cmd command php is not an internal command phpStudy Solution
1. First open phpStudy to see your local PHP version
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:
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
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
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!