How to modify environment variables in php

藏色散人
Release: 2023-03-03 10:26:02
Original
4234 people have browsed it

php method to modify environment variables: 1. Find the XAMPP file path and set the environment variable to "D:\xampp\php"; 2. Configure to the scripts path; 3. Enter the command "in cmd" php -v" to see if the configuration is successful.

How to modify environment variables in php

Recommended: "PHP Tutorial"

PHP Setting Environment Variables

1. The php.exe file is used to execute PHP files. Set directly to the parent directory of php.exe.

For example, my XAMPP file path is: D:\xampp\php\php.exe, then the environment variable is set to

D:\xampp\php
Copy after login

2, and configured to the scripts path for execution in cmd PHP method for your own project.

For example, my XAMPP file path is: D:\xampp\php\scripts, then the environment variable is set to

D:\xampp\php\scripts
Copy after login

3. Enter the command in cmd: php -v to check whether the configuration is successful.

The above is the detailed content of How to modify environment variables in php. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:php.cn
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!