Search code examples
phpwindowswamp

How to set the env variable for PHP?


I am using WAMP. I want to use php from the command prompt. What is the entry in PATH env variable for this ?


Solution

  • You need to put the directory that has php.exe in you WAMP installation into your PATH. It is usually something like C:\wamp\xampp\php