'php' is not recognized as an internal or external command, operable program or batch file. 1

‘php’ is not recognized as an internal or external command, operable program or batch file.

%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;%SYSTEMROOT%\System32\WindowsPowerShell\v1.0\;G:\HashiCorp\Vagrant\bin;G:\xampp\php;G:\xampp\mysql\bin;G:\Program Files (x86)\heroku\bin;G:\Program Files (x86)\Git\bin;G:\Program Files (x86)\composer;G:\Program Files (x86)\nodejs;G:\Program Files (x86)\Sublime Text 3;G:\Program Files (x86)\Microsoft VS Code\bin;G:\Program Files (x86)\cygwin64\bin

Here is what the above code is Doing:
1. We are creating a variable called ‘path’ and assigning it the value of the ‘PATH’ environment variable.
2. We are then splitting the value of the ‘PATH’ environment variable into a list of strings, each string being a directory.
3. We are then iterating over the list of strings and printing each string.

Similar Posts