PHP is not recognized as an internal or external command in command prompt

后端 未结 8 1399
情深已故
情深已故 2020-11-29 19:55

I got the following error when I run a command with php

C:\\xampp\\htdocs>php
\'php\' is not recognized as an internal or external command,
o         


        
8条回答
  •  隐瞒了意图╮
    2020-11-29 20:07

    Add C:\xampp\php to your PATH environment variable.

    Then close your command prompt and restart again.

    Note:

    It's very important to close your command prompt and restart again otherwise changes will not be reflected.

提交回复
热议问题