Bruce Bruce - 6 months ago 25
PHP Question

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 ?

Answer

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