I'm win7, PHP environment built with XAMPP (installation path F:/XAMPP)
To make it easy to use PHP commands directly in the global
I threw the php.exe under the f:/xampp/php down to Windows/system32.
However, the PHP command is still not available in the console and must be CD-to-f:/xampp/php.
Reply content:
I'm win7, PHP environment built with XAMPP (installation path F:/XAMPP)
To make it easy to use PHP commands directly in the global
I threw the php.exe under the f:/xampp/php down to Windows/system32.
However, the PHP command is still not available in the console and must be CD-to-f:/xampp/php.
Add the php file path to the environment variable path.
setx PATH "%PATH%;你的PHP文件夹路径"
Once added, because the CLI and CGI are not the same file when PHP is executed, it is php.ini
a good idea to execute:
php -i | findstr php.ini
Look at php.ini
the location of the file.
This and PHP installed in that directory, there is no direct relationship, the PHP installation path into the environment variable can be in the computer global access.