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

后端 未结 8 1428
情深已故
情深已故 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:17

    You need to Go to My Computer->properties -> Advanced system setting

    Now click on Environment Variables

    Add ;C:\xampp\php in path variable value

    Now restart command prompt DONE!

    Note: Make sure you run CMD via run as administrator

提交回复
热议问题