Beginners Tutorial: Web Development Environment for Learning
Date: 20/06/2012
Have you wondered about designing your website or making one just for fun or for a learning experience? This multipart tutorial will teach you the basics of servers, server side scripting, connecting to mySQL and installing a server on your personal machine. (XAMPP, WAMP, LAMP)
This tutorial will not cover specific programming and scripting languages like PHP, Ruby, .Net and others, rather it will teach you how to set up your training environment and then learn everything else by yourself at your own pace! (You will get to see a lot of "Hello Friend" examples though.)
Part 1: Very brief basics on WWW
Difficulty level: Easy
Time: 7 Minutes
Every website you see/visit on your browser (Firefox, Chrome, IE) is being served to you by dedicated computers called "Servers". These servers have a software running that 'Listen' on ports (example: 8080, 90, 23 etc) for a connecting visitor.
When you type in <a href="https://www.google.com" target="_blank" rel="nofollow noopener noreferrer">Google</a>. The request is first sent to your service provider (example: Airtel, MTNL, Reliance, Du, Etisalat, At&T, etc). They forward the request to a DNS (Domain Name System) which converts the name into it's corresponding IP address (example: <a href="https://www.example.com" target="_blank" rel="nofollow noopener noreferrer">Example Domain</a> -> 192.32.44.33).
You are then directed to the machine with it's IP number 192.32.44.33 which can be called the server for <a href="https://www.example.com" target="_blank" rel="nofollow noopener noreferrer">Example Domain</a>.
When you go to <a href="https://www.example.com" target="_blank" rel="nofollow noopener noreferrer">Example Domain</a> through your browser, it tries to connect to the server with port 8080 or 80 which is mostly used for HTML requests.
The server is "listening" on port 8080 so when you connect, the server checks for the requested page (<a href="https://www.example.com/index.html" target="_blank" rel="nofollow noopener noreferrer">Example Domain</a> or #-Link-Snipped-# etc depending on what you typed on your address bar).
If the page is found, the server processes the file to check if it has server side scripting (PHP, Ruby, .Net scripts) and does the work after which it sends the HTML to your browser.
Your browser further processes (browser scripting like Javascript) and displays the result on your screen.
In the upcoming sections of the tutorial we will learn to install our own server on our personal PC to try out websites, blogs, server side scripting like PHP and mySQL.
The next tutorial will introduce you to the exciting world of installing your own server, making your HTML pages, PHP scripts and mySQL databases! #-Link-Snipped-#