I got the following error when I run a command with php
php
C:\\xampp\\htdocs>php \'php\' is not recognized as an internal or external command, o
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