Bruce Bruce - 1 year ago 118
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 Source

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