How to install PHP on your local system?
Introducing PHP on your improvement PC enables you to securely make and test a web application without influencing the information or frameworks on your live site.So to install PHP you just need to follow the steps shown below
STEPS TO INSTALL XAMPP
1 ) Go To https://www.apachefriends.org/index.html Xampp Webpage .
2) Click Xampp For Windows. It's a grey button near the bottom of the page.
Depending on your browser, you may first have to select a save location or verify the download.
3) Double Click The Downloaded File Named As xampp-win32-7.2.4-0-VC15-installer .
4) Click yes when prompted. This will open the XAMPP setup window.
5 ) Click Next . Its At The Bottom Of The Setup Window .
6) Select The Aspects Of Xampp To Install .
7 ) Click Next Button At Bottom Of Setup.
8 ) Select an installation location. Click the folder-shaped icon to the right of the current installation destination, then click a folder on your computer.
If you have the UAC activated on your computer, avoid installing XAMPP in your hard drive's folder (e.g., OS (C:)).
You can select a folder (e.g., Desktop) and then click Make New Folder to create a new folder and select it as the installation destination.
9 ) Click Next And Check The Learn More Button If You Don’t Want To Learn More .
9) Click Next And Process Will Start .
10 ) Select a language. Check the box next to the American flag for English, or check the box next to the German flag for German.
11 ) Click Save. Start XAMPP from its installation point. If you need to open the XAMPP Control Panel in the future, you can do so by opening the folder in which you installed XAMPP, right-clicking the orange-and-white xampp-control icon, clicking Run as administrator, and clicking Yes when prompted.
When you do this, you'll see red X marks to the left of each server type (e.g., "Apache"). Clicking one of these will prompt you to click Yes if you want to install the server type's software on your computer.
Counterintuitively, double-clicking the xampp_start icon doesn't start XAMPP.
12 ) Resolve issues with Apache refusing to run. On some Windows 10 computers, Apache won't run due to a "blocked port". This can happen for a couple of reasons, but there's a relatively easy fix:
Click Config to the right of the "Apache" heading.
Click Apache (httpd.conf) in the menu.
Scroll down to the "Listen 80" section (you can press Ctrl+F and type in listen 80 to find it faster).
Replace 80 with any open port (e.g., 81 or 9080).
Press Ctrl+S to save the changes, then exit the text editor.
Restart XAMPP by clicking Quit and then re-opening it in administrator mode from its folder.
So Let's Check Weather Php And Xampp Have Been Installed Correctly To That,to do that we need to make a file name Adding.php in htdocs folder in C:\xampp\htdocs
And write this code and save it
After saving it go to localhost:81\filename.php and hit enter you will see output something like this
That's all we have successfully install php and xampp to our local system.
In our next post will see how to use $_POST method to get form value in php.