Home  >  Article  >  Backend Development  >  How to set PHP environment variables (windows system)

How to set PHP environment variables (windows system)

little bottle
little bottleforward
2019-04-24 17:43:214898browse

This article mainly talks about the process of setting PHP environment variables under Windows system. Friends who are interested can learn about it. I hope it will be helpful to you.

1. Find "Advanced System Settings" (choose one of the two methods to find environment variables)

① My Computer-Properties-Advanced-Environment Variables

②win8,10 Directly search for "View Advanced System Settings" in the search box - Environment Variables

2. Find the variable "Path" (use ② for win10)

① Add ";D:/" after the original one. xammp/php” (the directory where php.exe is located, there is also a ;)

② Or press New and add “D:/xammp/php”

3. Re-open cmd

win R, enter php -v (check php version information)

4. Success!

Related tutorials: PHP video tutorial

The above is the detailed content of How to set PHP environment variables (windows system). For more information, please follow other related articles on the PHP Chinese website!

Statement:
This article is reproduced at:cnblogs.com. If there is any infringement, please contact admin@php.cn delete