How to set the env variable for PHP?

后端 未结 7 2041
梦如初夏
梦如初夏 2020-11-27 18:56

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

7条回答
  •  天命终不由人
    2020-11-27 19:17

    For windows: Go to your "system properties" please.then follow as bellow.

    Advanced system settings(from left sidebar)->Environment variables(very last option)->path(from lower box/system variables called as I know)->edit

    then concatenate the "php" location you have in your pc (usually it is where your xampp is installed say c:/xampp/php)

    N.B : Please never forget to set semicolon (;) between your recent concatenated path and the existed path in your "Path"

    Something like C:\Program Files\Git\usr\bin;C:\xampp\php

    Hope this will help.Happy coding. :) :)

提交回复
热议问题