How to install PHP on Windows 10
Introduction
On this page, we will learn how to install PHP on Windows 10 PC. The main steps to download PHP windows binary,extract the files, append to the PATH variable and verify the install.
Download PHP
Download PHP zip file from the URL:
https://windows.php.net/download
Install PHP
Extract the files from the .zip file. Copy the folder to a favorable location for example: c:\php
Open command prompt and verify PHP.
> php.exe -version
Append to the PATH variable
We can add the PHP path to the PATH environment variable.
Open Control Panel >> System and Security >> System
Click on Advance System Settings.
Click on Environment Variables.
Select PATH and edit the variable.
Add the PHP path to the variable. For example c:\php.
Save the setting by clicking on the OK button..