How to set the env variable for PHP?

后端 未结 7 2003
梦如初夏
梦如初夏 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:35

    You May use set keyword for set the path

    set path=%path%;c:/wamp/bin/php/php5.3.0
    

    if all the path are set in path variables

    If you want to see all path list. you can use

    set %path%
    

    you need to append your php path behind this path.

    This is how you can set environment variable.

提交回复
热议问题