This article is about to set the system variables for PHP, environment variables, has a certain reference value, now share to everyone, the need for friends can refer to
See this title, there are two questions, is to set the system environment variables for the Php.exe, or to the programming language settings can be directly called environment variables, said here some people may faint, because we often see is the first, equivalent to a command set shortcut keys, do not go to install the app's directory and then hit the command. As an example:
1, do not add php.exe Global environment variables, we need to run PHP in the following directory in order to:
D:\phpStudy\php\php-5.6.27-nts\
Note: This is my Php.exe installation directory, you may be different from mine, that is not important.
For example
To view PHP version information:
Php-v
To view the PHP extension module:
Php-m