Home > Backend Development > PHP Tutorial > Set system variables and environment variables for php

Set system variables and environment variables for php

不言
Release: 2023-03-23 22:24:02
Original
2297 people have browsed it

The content of this article is about setting system variables and environment variables for PHP. It has certain reference value. Now I share it with you. Friends in need can refer to it.

See this title, there are Two questions: Set system environment variables for php.exe, or set environment variables for programming languages ​​​​that can be called directly. Some people may be confused when talking about this, because the first one is what we often see, which is equivalent to setting environment variables for someone. Set the shortcut key for a command without having to go to the directory where the application is installed and type the command again. For example:

1. When the php.exe global environment variable is not added, we need to run php in the following directory:

D:\phpStudy\php\php-5.6.27-nts\
Copy after login
  • ##1

Note: This is the directory where my php.exe is installed. Yours may be different from mine, but that doesn’t matter.

For example,

View PHP version information:

php -v
Copy after login

  • 1

View PHP expansion module:

php -m
Copy after login
Related recommendations:

Set server (Apache/Nginx) environment variables for php


The above is the detailed content of Set system variables and environment variables for 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