UNIT 1_Internet and Web Programming_Internet and Web Programming.pptx
UNIT 1_Internet and Web Programming_Internet and Web Programming.pptx
14
-June
Advantages:
• Communication: Intranet offers easy and cheap communication within an organization.
Employees can communicate using chat, e-mail or blogs.
• Time Saving: Information on Intranet is shared in real time.
• Collaboration: Information is distributed among the employees as according to
requirement and it can be accessed by the authorized users, resulting in enhanced
teamwork.
• Platform Independency: Intranet can connect computers and other devices with
different architecture.
• Cost Effective: Employees can see the data and other documents using browser rather
than printing them and distributing duplicate copies among the employees, which
certainly decreases the cost.
• Workforce Productivity: Data is available at every time and can be accessed using
company workstation. This helps the employees work faster.
• Business Management: It is also possible to deploy applications that support business
operations.
• Security: Since information shared on intranet can only be accessed within an
organization, therefore there is almost no chance of being theft.
• Specific Users: Intranet targets only specific users within an organization therefore,
Immediate Updates: once can exactly know whom he is interacting.
• Any changes made to information are reflected immediately to all the users.
INTRANET INTERNET Intranet applications are same
Localized Network Worldwide Network as that of Internet
Doesn’t have access Have access to applications.
to intranet (means network
two intranet can’t Intranet applications are also
communicate)
accessed through a web
More Expensive Less Expensive
browser.
More Safe Less Safe
Proof
• All semantic and rules that are executed at
layers below Proof and their result will be used
to prove deductions.
Cryptography
Cryptography means such as digital signature
for verification of the origin of sources is used.
• Points to remember:
• UDP is used by the application that typically transmit small amount of data at one
time.
• UDP provides protocol port used i.e. UDP message contains both source and
destination port number, that makes it possible for UDP software at the
destination to deliver the message to correct application program.
File Transfer Protocol
• FTP is used to copy files from one host to another. FTP offers the mechanism for the
same in following manner:
• FTP creates two processes such as Control Process and Data Transfer Process at both
ends i.e. at client as well as at server.
• FTP establishes two different connections: one is for data transfer and other is for
control information.
• Control connection is made between control processes while Data Connection is made
between data transfer process
• FTP uses port 21 for the control connection and Port 20 for the data connection.
Hyper Text Transfer Protocol (HTTP)
• HTTP is a communication protocol. It defines mechanism for
communication between browser and the web server. It is also called
request and response protocol because the communication between
browser and server takes place in request and response pairs.
HTTP Request: HTTP request comprises of lines which contains:
• Request line
• Header Fields
• Message body
Key Points
• The first line i.e. the Request line specifies the request method
i.e. Get or Post.
• The second line specifies the header which indicates the domain name of
the server from where index.htm is retrieved.
HTTP Response
• Like HTTP request, HTTP response also has certain structure. HTTP
response contains:
• Status line
• Headers
• Message body
WWW Operation
• WWW works on client- server approach.
• Following steps explains how the web works:
• User enters the URL of the web page in the address bar of web
browser.
• Then browser requests the Domain Name Server for the IP address
corresponding to URL.
• After receiving IP address, browser sends the request for web page to
the web server using HTTP protocol which specifies the way the
browser and web server communicates.
• Then web server receives request using HTTP protocol and checks its
search for the requested web page. If found it returns it back to the
web browser and close the HTTP connection.
• Now the web browser receives the web page, It interprets it and
display the contents of web page in web browser’s window.
Web Page
• web page is a document available on world wide web. Web Pages are stored
on web server and can be viewed using a web browser.
• A web page can contain huge information including text, graphics, audio, video
and hyper links. These hyper links are the link to other web pages.
• Collection of linked web pages on a web server is known as website. There is
unique Uniform Resource Locator (URL) is associated with each web page.
Static Web page
• Static web pages are also known as flat or stationary web page. They are
loaded on the client’s browser as exactly they are stored on the web server.
Such web pages contain only static information. User can only read the
information but can’t do any modification or interact with the information.
• Static web pages are created using only HTML. Static web pages are only used
when the information is no more required to be modified.
• Examples of Static Websites
• The major examples of static websites are as follows:
• Documentation
• Developing Cache
• Website presentation
• Communication cache-scrapping buffer
• Forms
• Newsletter Contents
• Disaster page
• Recovery from disaster status
• Landing page/scales
• Blogs.
Dynamic Web page
• Dynamic web page shows different information at different point of time. It
is possible to change a portion of a web page without loading the entire
web page. It has been made possible using Ajax technology.
Server-side dynamic web page
• It is created by using server-side scripting.
• There are server-side scripting parameters that determine how to assemble
a new web page which also include setting up of more client-side
processing.
Client-side dynamic web page
• It is processed using client side scripting such as JavaScript. And then passed
in to Document Object Model (DOM).
Websites Types
• Internet Forums: An internet forum is message board where people can hold
conversation by posting messages. Domain Mea
• Within a forum’s topic, each new discussion started is called a thread. .in Inter
A domain name is the part of your Internet address that comes after “www”.
• Domain Extensions: The final letter at end of internet address is known as top level
domain names.
• They are called top level because they are read from right to left, and the part after the
dot is the highest in a hierarchy.
• The following table shows the Generic Top-Level Domain names:
Assignment Question: Write all the domain names website examples with their application area.
Website Hosting
• Web hosting is a service of providing online space for storage of web pages.
• web hosting is the process of renting or buying space to house a website on the
World Wide Web. Website content such as HTML, CSS, and images has to be housed
on a server to be viewable online.
• A server is a computer that connects other web users to your site from anywhere in
the world. As the name implies, web hosting service providers have the servers,
connectivity, and associated services to host websites. By offering a variety of
hosting plans, they cover the spectrum of hosting needs, from small blogs and large
organizations.
• These web pages are made available via World Wide Web. The companies which
offer website hosting are known as Web hosts.
• The servers on which web site is hosted remain switched on 24 x7.
• These servers are run by web hosting companies. Each server has its own IP address.
• Since IP addresses are difficult to remember therefore, webmaster points their
domain name to the IP address of the server their website is stored on.
• It is not possible to host your website on your local computer, to do so you would
have to leave your computer on 24 hours a day.
• This is not practical and cheaper as well. This is where web hosting companies
comes in.
Types of Hosting
• Different types of hosting that can be availed as per the need:
1. Shared Hosting:
In shared hosting, the hosting company puts thousand of website on the same physical
server. Each customer has their own allocation of physical web space and a set of
bandwidth limit. As all websites share same physical memory, MYSQL server and Apache
server, one website on the server experiencing high traffic load will affect performance of all
websites on the server.
It is similar to renting a workstation in a busy, noisy, open plan office or co-working space. You have all the
modern conveniences: a desk, internet connection and some stationary and you share the space with
other co-workers including the kitchen, printer, and restroom. You can’t do any makeovers to the space
such as installing whiteboards etc. This is a popular option for launching small websites and not
appropriate for large-scale commercial projects.
2. Virtual Private Server (VPS)
4. Reseller Hosting
A reseller acts as a middle man and sells hosting space of someone else’s
server.
5. Grid Hosting
Instead of utilizing one server, Grid Hosting spreads resources over a large
number of servers. It is quite stable and flexible.
The servers can be added or taken away from the grid without crashing
the system.
Search Engine Optimization
• Search Engine Optimization refers to set of activities that are performed to increase number of
desirable visitors who come to your site via search engine.
• These activities may include thing you do to your site itself, such as making changes to your text
and HTML code, formatting text or document to communicate directly to the search engine.
Types of SEO
1. White Hat SEO and
2. Black Hat or Spamdexing
Website monetization: refers to making money from the website. It is done by converting existing
traffic to a particular website into revenue.
Methods of Monetization
1. Display Advertising
• It refers to the banners and text ads. This method is good for the websites that have significant
traffic, valuable audience, relevant and active advertisers.
2. Affiliate Marketing
• It refers to steering the visitors to products and services of a third party merchant. It is good for
the websites that are product centric and have easy integration into content.
3. Lead generation
• It refers to capturing the customer information and selling it to a third party.
4. Email rental
• It refers to renting out your email lists to third parties. In this you will send an email on their
behalf to your distribution list.
Server Side /Client Side Scripting
Server Side: Client Side:
• This type of scripting usually occurs on a website’s • This type of scripting basically refers to the
back-end. code present in the HTML page of a client.
• Any random user won’t get access to view whatever • The client-side scripting usually attaches to
happens over here. the concerned browser in any language that’s
• It means that server-side scripting paves the way for a compatible with that browser.
website to its database along with all of its
• It helps work with the front end.
behind-the-scenes tasks that contribute to the
organization and running of the website. • It is visible to the users.
• In server-side scripting, you can customize the responses • The scripts are run on the client browser.
solely on the basis of the user requirements. • It runs on the user/client’s computer.
• It helps work with the back end. • It depends on the browser’s version.
• It doesn’t depend on the client. • It doesn’t interact with the server to process
• It runs on the web server. data.
• It helps provide a response to every request that comes in • Client side scripting involves languages such
from the user/client. as HTML, CSS, JavaScript.
• This is not visible to the client side of the application. • It helps reduce the load on the server.
• It requires the interaction with the server for the data to •
be process.
• Server side scripting requires languages such as PHP,
ASP.net, ColdFusion, Python, Ruby on Rails.
• It is considered to be a secure way of working with
applications.
• It can be used to customize web pages.
• It can also be used to provide dynamic websites.
Scripting Languages
• Scripting languages are like programming languages that allow us to write
programs in form of script. These scripts are interpreted not compiled and
executed line by line.
• Scripting language is used to create dynamic web pages.
Client-side Scripting
• Client-side scripting refers to the programs that are executed on client-side.
Client-side scripts contains the instruction for the browser to be executed in
response to certain user’s action.
• Client-side scripting programs can be embedded into HTML files or also can be
kept as separate files.
• Example:
(1) Javascript: It is a prototype based s cripting languages. It inherits its naming
conventions from java. All java script files are stored in file having .js extension.
(2) ActionScript: It is an object oriented programming language used for the
development of websites and software targeting Adobe flash player.
(3) Dart: It is an open source web programming language developed by Google. It
relies on source-to-source compiler to JavaScript.
(4) VBScript: It is an open source web programming language developed by
Microsoft. It is superset of JavaScript and adds optional static typing
class-based object oriented programming.
Client Side Scripting
• Server-side Scripting: acts as an interface for the client and also limit the
user a Sever-side scripting access the resources on web server.
• It can also collects the user’s characteristics in order to customize
response.
1. ASP: Active Server Pages (ASP)is server-side script engine to
create dynamic web pages. It supports Component Object
Model (COM) which enables ASP web sites to access
functionality of libraries such as DLL.
2. ActiveVFP: It is similar to PHP and also used for creating
dynamic web pages. It uses native Visual Foxpro language
and database.
3. ASP.net: It is used to develop dynamic websites, web
applications, and web services.
4. Java: Java Server Pages are used for creating dynamic web
applications. The Java code is compiled into byte code and
run by Java Virtual Machine (JVM).
5. Python: It supports multiple programming paradigms such
as object-oriented, and functional programming. It can also
be used as non-scripting language using third party tools
such as Py2exe or Pyinstaller.
6. WebDNA: It is also a server-side scripting language with an
embedded database system.
Web Browser
• Web Browser is an application software that allows us to view and explore
information on the web. User can request for any web page by just
entering a URL into address bar.
• Web browser can show text, audio, video, animation and more. It is the
responsibility of a web browser to interpret text and commands contained
in the web page.
• Earlier the web browsers were text-based while now a days
graphical-based or voice-based web browsers are also available. Following
are the most common web browser available today: GoogleChrome,
Opera, Firefox, Pagegrow, MicrosoftEdge, Brave, InternetExplorer, Safari,
etc.
Architecture
• There are a lot of web browser available in the market. All of them
interpret and display information on the screen however their capabilities
and structure varies depending upon implementation. But the most basic
component that all web browser must exhibit are listed below:
❑ Controller/Dispatcher
❑ Interpreter
❑ Client Programs
• Controller works as a control unit in CPU. It takes input from the keyboard
or mouse, interpret it and make other services to work on the basis of
input it receives.
• Interpreter receives the information from the controller and execute the
instruction line by line. Some interpreter are mandatory while some are
optional For example, HTML interpreter program is mandatory and java
interpreter is optional.
• Client Program describes the specific protocol that will be used to access a
particular service. Following are the client programs that are commonly
used:
• HTTP
• SMTP
• FTP
• NNTP
• POP
Web server
• Web server is a computer where the web content is stored.
Basically web server is used to host the web sites but there
exists other web servers also such as gaming, storage, FTP,
email etc.
• Web site is collection of web pages while web server is a
software that respond to the request for web resources. Web
Server Working
• Web server respond to the client request in either of the
following two ways:
1. Sending the file to the client associated with the requested
URL.
2. Generating response by invoking a script and communicating
with database
Concurrent Approach
• Concurrent approach allows the web server to handle multiple client requests at the same time. It can be
achieved by following methods:
1. Multi-process
2. Multi-threaded
3. Hybrid method.
Multi-processing
• In this a single process (parent process) initiates several single-threaded child processes and distribute
incoming requests to these child processes. Each of the child processes are responsible for handling single
request.
• It is the responsibility of parent process to monitor the load and decide if processes should be killed or
forked.
Multi-threaded
• Unlike Multi-process, it creates multiple single-threaded process.
Hybrid
• It is combination of above two approaches. In this approach multiple process are created and each
process initiates multiple threads. Each of the threads handles one connection. Using multiple threads in
single process results in less load on system resources.
Question: Write about the various servers like Apache, IIS, Lighttpd, Sun Java System Web
Server, Jigsaw Server