To begin working on PHP, the first thing you would need to do is to setup a PHP environment on your own computer. Alternatively, you can get hold of a hosting account on an internet server which has PHP and associated applications installed and setup.
Working directly on an internet server can be a little tedious. Every time you make a change to a program, you need to upload the updated file(s) on the server and then run it to test it. For this you need to be connected to the internet all the time through a reasonably high speed connection.
Hence, my advice is that your must install all the necessary software on your local computer itself so that you can work offline during the development.
In my first article on PHP, I talked about the LAMP platform, which is short for - Linux Apache MySql PHP. In this article I will discuss how to setup a LAMP environment on your own computer to make it ready for PHP development. Since I am talking about installing PHP related core software on a Windows PC, I will call it WAMP, replacing Linux with Windows.
To make your computer work like a PHP server, you just need to install some software that will make it function as a server. So, what are the software you need?
All of the above 3 come bundled as a single package known as XAMPP. If you wish to install with a MySQL database server, the link for downloading the same is https://sourceforge.net/projects/xampp/. Install the package that includes PHP version 5.6 or above.
If you wish to install the one that comes with MariaDB, you can install from the official website of XAMPP, viz. https://www.apachefriends.org/index.html. All relevant documents and help related to installation on different types of computers are available at this website. Hence, I am not dicussing those things here.
Here is a step by step guide to setting up the PHP development environment on your Windows PC.
So, please go ahead and setup the PHP environment on your own computer. In my subsequent articles, I will be dealing with how to setup a website on your local computer and begin coding in PHP-MySQL.
How to move your Email accounts from one hosting provider to another without losing any mails?
How to resolve the issue of receiving same email message multiple times when using Outlook?
Self Referential Data Structure in C - create a singly linked list
Mosquito Demystified - interesting facts about mosquitoes
Elements of the C Language - Identifiers, Keywords, Data types and Data objects
How to pass Structure as a parameter to a function in C?
Rajeev Kumar is the primary author of How2Lab. He is a B.Tech. from IIT Kanpur with several years of experience in IT education and Software development. He has taught a wide spectrum of people including fresh young talents, students of premier engineering colleges & management institutes, and IT professionals.
Rajeev has founded Computer Solutions & Web Services Worldwide. He has hands-on experience of building variety of websites and business applications, that include - SaaS based erp & e-commerce systems, and cloud deployed operations management software for health-care, manufacturing and other industries.