web server

15
SESSION OBJECTIVE 1. Introduction 2. Web Server 3. Browser 4. How Web Server and Browser Communicate 5. Introduction to Asp 6. A small application program on ASP 7. Advantages of ASP

Upload: sajan-sahu

Post on 06-Jul-2015

82 views

Category:

Technology


2 download

DESCRIPTION

web server basics

TRANSCRIPT

Page 1: Web server

SESSION OBJECTIVE

1. Introduction2. Web Server3. Browser4. How Web Server and Browser Communicate5. Introduction to Asp6. A small application program on ASP7. Advantages of ASP

Page 2: Web server

IntroductionWhat is a Server?Server provides service that is always responds to requests generated by clients.What is a Client?A client always requests for service to the server.Web ServerIt is a piece of software running on a computer that distributes WebPages to user on demand and provides an area where the page of a website can be stored, organized and accessed. The machine that runs the web server software can be a remote machine sitting at the other site of your network or even on the other side of the world or it could be a home machineBrowser (Client)The browser is generally known as the client. Browser is a piece of software which request for information to the server and the server responses to it.How The Web Server And Browser Communicate:-The message passed from the browser to the web server is known as a HTTP (Hyper Text Transfer Protocol) request. When the web server receives the request, it checks to find the appropriate page. If the web server finds the page it parcels up the HTML contain within addresses and sends them back across the network. If the web server cannot find the requested page it issues a page containing an error message like 404: page not found and it parcels up and dispatches that page to the browser. The message send from the web server to the browser is known as the HTTP response.

Page 3: Web server

WEB SERVER

FILE

PAGE1.HTML

FILE

FILE

CLIENT MACHINE/BROSWER

PURE HTML

REQUESThttp//www.wrox.com/page1.htm

REQUESTING A PURE HTML PAGE

Page 4: Web server

WEB PAGE

WEB SERVER

BROWSER

HTTP RESPONSE

HTTP REQUEST(HTTP:/WEB SITE)

Page 5: Web server

ASP AND ITS APLICATIONS:-

ASP: - Active server page is a powerful server based technology from Microsoft design to create dynamic and interactive HTML (Hyper

Text Markup Language) pages for the fsWorld Wide Web and intranet. ASP is now considered as an integral part of working with windows on

the internet. It works by allowing us the functionality of a programming language. Whenever a user browses to our website and request one of our ASP pages the ASP code is processed at that time

by a special piece of software the web server. These processing generates the HTML, which is then passed to the browser and used to

create the page itself on the user screen.ASP is not the first technology offers these features but it is

undoubtedly one of the most powerful and widely used in industry and crucially it is one of the fastest. Active server pages are different from

much Microsoft technology in the following respect:

Page 6: Web server

While ASP must be executed on a computer that supports it, we can view ASP driven web pages from any computer and with any Modern browser. This has enabled developer to enhance their web pages with

interactive features even to solve common business problem to such an extend that, that pages with the .ASP suffix are first becoming as

common as those with .HTML suffix.1. Most important advantage that ASP has is its ability to create pages

that are sensitive to factors such as time and place and user identity and previous choices and actions.

2. ASP is used to customize our web pages to the specific need of each individual user. It means that text, images, tables, forms and even the layout of the page can be selected automatically at the time of user

request the page and to suit that user’s requirement. 3. ASP requires the knowledge of HTML and scripting language.

(VBscript) to build application.

Page 7: Web server

ASP was officially announced to the world by Microsoft on July 16, 1996, codenamed Denali. A beta version was released in November 1996, and ASP version 1.0 was shipped on December 12, 1996.it gained much wider recognition when it was bundled with of Microsoft Internet Information Server (IIS) web server suite in march1997 and it has been gaining steadily its popularity since then.

ASP VERSIONS Windows 2000 IIS 5.0 (Internet Information Server) Window NT server 4.0 IIS 2.0 Window NT PWS (Personal Web Server) Workstation 4.0 PWS Windows 98 PWS version 3.0

Page 8: Web server

WHAT DO I NEED TO RUN ASP:-1. In order to write pages a text editor or other web development tool

is required.2. In order to publish the pages a web server that supports ASP is

needed.HOW IT WORKS:-After installation of IIS/PWS an Inetpub directory is created. That

provides sub directories and it contains:-• \iis samples\homepage contains some example of ASP pages.• \iis samples\sdk contains as set of sub directories that hold ASP

scripts which demonstrate the various ASP objects and components • \ Scripts is an empty directory which is a useful place to store any

ASP scripts created by user.• \ Web pub is also empty. This is a special virtual directory, used for

publishing files via the publish wizard. This directory only exists in windows 2000 professional edition.

Page 9: Web server

•\ Wwwroot is the top of the tree for web site. This is used as the data utility web directory. It also contains a number of sub directories which contain various bits and pieces of IIS. This directory is generally used to contain sub directories which hold the pages that make up the website.•\ftproot\mailroot and \nntproot should for the top of the tree for any site that uses FTP, mail or news services, if installed.

TESTING WEB SERVER:- After installation of IIS/PWS it needs to check whether the web server is running or not .For this reason http://localhost is typed in the address bar of the browser to see the homepage (default page).

Page 10: Web server

SPECIAL EDIITOR TO CREATE AND EDIT ASP SCRIPTS:-•Microsoft visual Interdev 6.0-Microsoft Interdev 6.0 is a professional programming tool forDesigning dynamic web application.•Microsoft front page-Front page is another tool for creating and designing web page but it is not friendly at visual Interdev. •allayers home site-This is one of the best non Microsoft web page editors.•notepad-Notepad is a time honored text editor

Page 11: Web server

<html><!--html code--><head><title>itishree.com</title></head><body bgcolor="yellow"><form name="frm" action="name.asp" method="post"><center><p><h1>wel come to centre for it education</h1></p><p><h2>mca 2nd semster talk</h2></p><p align="center"><font colcor="red"><b>today's date is <%=date%> <!-- asp code or vbscript--><br><br>today's time is <%=time%></b> <!--asp code or vbscript--></p><p>name please</b><input type=text size="20" name="iti"></p><p align="center" color="red"><input type="submit" value="submit" name="btn_clk" style="color: red"></p></center></form></body></html>

Page 12: Web server
Page 13: Web server

<head><title>itishree.com</title></head><body bgcolor="yellow"><center><p><h1>wel come to centre for it education</h1></p><p><h2>mca 2nd semster talk</h2></p><p align="center"><font colcor="red"><b>today's date is <%=date%> <!-- asp code or vbscript--><br><br>today's time is <%=time%> <!--asp code or vbscript--></p><p align="center">thank u<%=ucase(request.form("iti"))%> <!-- asp code or vbscript--></p></font></b></center></body></html>

Page 14: Web server
Page 15: Web server

ADVANTAGES:-•Allows you to run programs in programming languages that are not supported by browser.•Enables the program to design dynamic web applications browser independently, without resource to client. Side programming features such as java applets, dynamic html, and activex controls, all which are browser specific.•Can provide the browser with data does not reside at the client.•often makes for free quicker loading times then with client side dynamic web technologies such as java applets or activex control, because in the end you are actually only down loading a page of html.•Provides improved security measures, since you can write code which can never be viewed from the browser.