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!

Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

Video Face Swap
Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Article

Hot Tools

SublimeText3 Mac version
God-level code editing software (SublimeText3)

Dreamweaver CS6
Visual web development tools

WebStorm Mac version
Useful JavaScript development tools

PhpStorm Mac version
The latest (2018.2.1) professional PHP integrated development tool

mPDF
mPDF is a PHP library that can generate PDF files from UTF-8 encoded HTML. The original author, Ian Back, wrote mPDF to output PDF files "on the fly" from his website and handle different languages. It is slower than original scripts like HTML2FPDF and produces larger files when using Unicode fonts, but supports CSS styles etc. and has a lot of enhancements. Supports almost all languages, including RTL (Arabic and Hebrew) and CJK (Chinese, Japanese and Korean). Supports nested block-level elements (such as P, DIV),
