Before starting PHP, you need a web host with PHP and MYSQL. For this, you should also install a web server such as Apache. To do it locally on your PC, you may download XAMPP directly from Apache Friends.
Installation of Apache, PHP, MySQL, and PHPMyAdmin
In order to install PHP, MySQL, PHPMyAdmin and Apache in a single attempt, XAMPP should be installed.
Click the .exe file to start the installation procedure.
Select the components which you want to install and click “Next”.
In the components area, you can view several options. As a beginner, you don’t need all of them. You need to install Apache, which is a very famous web server. It manages client responses. For data storage and view, you need a database such as MySQL. Filezilla FTP server option is not needed for performing operations at localhost. Next option is the Mercury Mail Server option. Its primary function is to deal with emails received by the server. It is needed to enable the flow of emails, which is not a requirement at the moment. Tomcat is also a web server owned by Apache.
Select your desired location, where you want to install XAMPP and then click “Next”.
Click “Next” on the coming screens to proceed with the installation process.
Now, you will see the final screen. I would suggest that you keep the “start the Control Panel” option checked. Click “Finish” to complete the installation process. A new window will open shortly.
The XAMPP Control Panel has now started. Now, click “Start” button in Apache and MySQL rows to begin.
You are now ready to start writing the code. Now all you need is an editor like Notepad++ or Dreamweaver to write the code.
After downloading Notepad++, you can start writing your code
<?php echo “My first PHP Script”; ?>
Now, save the page as “test.php” in htdocs folder and click “Save” button.
Now, open a web browser and type localhost in the address bar. It will automatically open the index file but if you type localhost/test.php
it will open the page that we have saved.
← Previous Next →
© 2018 BreakInerview