Home  >  Article  >  Backend Development  >  Set system variables and environment variables for php

Set system variables and environment variables for php

不言
不言Original
2018-04-16 11:02:282272browse

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\
  • ##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

  • 1

View PHP expansion module:

php -m

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!

Statement:
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
Previous article:PHP remove all spacesNext article:PHP remove all spaces