Advanced->Environment Variables" to complete the configuration of PHP environment variables."/> Advanced->Environment Variables" to complete the configuration of PHP environment variables.">
Home > Article > Backend Development > What do php environment variables mean?
php environment variables refer to the environment variables for configuring PHP. Just configure the "php.exe" path in "Computer->Advanced->Environment Variables" to complete the configuration of PHP environment variables.
Recommended: "PHP Video Tutorial"
php environment variables
Configure php environment variables. Go to our computer->Advanced->Environment Variables
and configure the php.exe path. In the future, you can use it directly in the CMD big black box. No path is required.
Related introduction:
Since the 1980s, every popular operating system has supported variables, just like programming languages. When a process starts, it inherits the variables of the parent process. The process uses these variables to discover information about the environment in which it is run, such as the preferred location for saving temporary files or the location of the user's home directory.
If you are using a Unix operating system, such as MacOS or Linux, you can open a terminal and view the value of the $HOME environment variable, as shown below:
» echo $HOME /Users/matt
If you are using Windows , you can open Powershell and enter the following:
Write-Output $env:HOMEPATH
Typically, environment variables are written in uppercase, with underscores separating the words LIKE_THIS.
The above is the detailed content of What do php environment variables mean?. For more information, please follow other related articles on the PHP Chinese website!