In the current information age, web sites have become an important tools in the hands of governments, business organizations and individuals to reach out to their target audiences beyond geographical boundaries. In a simple, technical jargon free and easy to understand way:
A web site is a collection of web pages which are stored on a web server and can be accessed from any where using a web browser. The purpose of a web site is to share information over the network.
Web sites can be of two types:
- Static web sites
- Dynamic web sites
Difference b/w static & dynamic web site
Usually people think that the difference b/w a static & dynamic website is that in a static web site, contents are never changed and in a dynamic web site they can be changed by the user or the site administrator/owner. In both type of websites, information can be used either by the user, administrator or owner. The real difference b/w them is the information itself.
In a static web site, the information which is presented to the end user, remain available on the server usually in the form of HTML pages. When a user sends a request to a page, contents of the page are sent by the server as response.
Following diagram describes the working of a static website:
In a dynamic web site, server has programs which are executed when a request is submitted by clients, these programs process requests and generate HTML contents which are sent by the server as response to the client.
Following diagram describes the working of a dynamic web site:
Usually each website has static as well as dynamic contents. If the information, which is to be presented to the user remain same for all users, a static page is created and if it differs from user to user, it is generated dynamically with the help of a program.
The development of such programs which are executed on the server, is called server side programming. Server side programming is usually done in PHP, Java, and .Net.