Raza Bayani

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.

[blockquote author=”codejow”]You must know HTML, CSS and an IDE to start with PHP. [/blockquote]

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.

[button link=”http://codejow.com/php-tutorials-2-creating-first-php-project/” size=”default” icon=”Select a Icon” side=”right” target=”blank” color=”408bb7″ textcolor=”ffffff”]Next PHP Tutorial[/button]

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


Raza Bayani
Raza Bayani

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.

Related Posts
%d bloggers like this: