How to set PHP environment variables (windows system)

little bottle
Release: 2023-04-06 10:36:02
forward
4918 people have browsed it

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!

Related labels:
source:cnblogs.com
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Latest Articles by Author
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template