PHP Tutorial 1: How to Create a Local Host

PHP Tutorial 1: How to Create a Local Host

Now-a-days the web design and web development have become popular all over the world. There are many languages for creating web pages such as ASP.net, PHP and etc. PHP is the most popular one among web developer due to it’s power and abilities for creating web pages. In this series of tutorials codejow aims to teach you PHP from basic to advance.

Intro to PHP:

PHP is a server-side scripting language. It originally stood for  Personal Home Page Tools but outdated since php 3.0 and now it stands for PHP: Hypertext Preprocessor . Before PHP almost all the web pages were static and for editing and bringing a change in a web-pages you had to edit its code. PHP was created to make websites dynamic and make them easy to use, manage, moderate and change the content.

For working with PHP or testing php’s code you need to have a server or host, online or a localhost. Here I’m going to show you how to run php’s code locally inside your computer.

"You must know HTML, CSS and an IDE to start with PHP. "

codejow

How to create a localhost?

There are different ways to create a localhost. In this tutorial I’m going to use WAMP server to run php’s code. for Installing WampServer go to WampServer’s website and download the appropriate version for your PC.

WampServer for PHP

After downloading WampServer you need to install it. Installation has some easy steps, don’t change anything during installation.

When installed, run it and check the notification area. the WampServer’s icon must turn to green to start with. If it is green then click on it and click localhost.

Ready to Go with WampServer

If all the steps are done correctly then after clicking on the localhost you must see this screen inside your browser.

PHP Wamp Server LocalHost

Now you’re done. You have a localhost and you can write PHP code and test it with your WampServer whether it works correctly or not.

Next PHP Tutorial

Follow our facebook page or our website for next steps and tutorials of Learning PHP.

 

Previous Array Data Structure in Java (Java-Arrays)
Next How to make a full pyramid shape in C++?

About author

Raza Bayani
Raza Bayani 42 posts

<p>Raza Bayani studies BCE (Bachelor in Computer Engineering) in Poly-technical University of Kabul. He is the CEO of CODEJOW group, a web designer, coder and recently a blogger. Raza thinks, he can help others and also boost-up his own programming skills being on codejow.com.</p>

View all posts by this author →

You might also like