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:
D:\phpStudy\php\php-5.6.27-nts\
For example,
php -v
php -m
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!