How to set the env variable for PHP?

2020-01-25 01:00发布

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

标签: php windows wamp
7条回答
\"骚年 ilove
2楼-- · 2020-01-25 01:49

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. :) :)

查看更多
登录 后发表回答