0% found this document useful (0 votes)
6 views20 pages

IP Chapter 1

Uploaded by

mamereg1621
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
6 views20 pages

IP Chapter 1

Uploaded by

mamereg1621
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
You are on page 1/ 20

Internet Programming

comp482
Reference

 H.M. Deitel, P.J. Deitel and T.R. Nieto, Internet and


World Wide Web: How to Program, Prentice Hall, 2002
 The complete reference web design by Tomas A. Powel
 The black book, web designing
 Php6, Apache, MySQL web development Wrox

programmer to programmer
 Beginning PHP and MySQL from novice to

professional third edition, W.Jason Gilmore

Mekonnen M. Ambo University 2


Introduction and Web
terminologies

Mekonnen M. Ambo University 3


Web related terminologies
 What is internet?
 What is web application, website, webpage?
 What is ISP?
 What is server?/server-client relation?
 What is AJAX?/Asynchronous java script and XML/

Mekonnen M. Ambo University 4


Web development
 To develop a Web site, three steps:
1. Obtain the appropriate equipment
 Web Server – hardware and software
2. Register the Web Server to an Internet Service
Provider (ISP)
 Obtain the IP address and DNS address
3. Develop the contents
 Internet Programming

Mekonnen M. Ambo University 5


What is Internet programming?

 Internetprogramming is a stream that


aims to develop a web based applications.

 Internet programming includes broad


variety of technologies spanning such
diverse areas such as protocols for
communication networks, interfacing to
databases, programming of graphical user
interfaces, or structuring information.
Mekonnen M. Ambo University 6
What is Internet programming?
 Web service is a kind of client / server process
 Need interaction between client and server
 Programming for providing Web service can also be
divided into
– Client-side programming: to define the operation to be
performed on the client’s machine
– Server-side programming: to define the operation to be
performed on the server

Mekonnen M. Ambo University 7


Internet

Database Web Server Web Client

Server-side Programming Client-side Programming

Skills that are often required: Skills that are often required:
• CGI • XHTML
• PHP • Javascript
• ASP • Java
• Perl • Dreamweaver
• Java Servlet, … • Flash
• SMIL, XML …

Fig 1
Mekonnen M. Ambo University 8
What is web application?
 A web application is a website that contains pages
with partly or final content of a page.
 The final content of a page is determined only

when the visitor requests a page from the web


server.
 A dynamic page which is the final content of the

page that have varies of form request based on the


visitor’s actions.
 Web applications are built to address a variety of

challenges and problems.

Mekonnen M. Ambo University 9


What is web application?

 Essentially,
all web applications do pretty much the
same things:
Transmit User-Defined Query
Perform Server Side Processing
Transmit Query Results
Perform Client Side Processing

Mekonnen M. Ambo University 10


Traditional web application

Fig 2
Mekonnen M. Ambo University 11
 Figure 2 presents the typical interactions
between the client and the server in a traditional
web application, such as one that uses a user
registration form.
 First, the user fills in the form’s fields, then

submits the form (Step 1).


 The browser generates a request to the server,

which receives the request and processes it (Step


2).

Mekonnen M. Ambo University 12


 The server generates and sends a response
containing the exact page that the browser will
render (Step 3), which causes the browser to load
the new page (Step 4) and temporarily makes the
browser window blank.

Mekonnen M. Ambo University 13


 Note that the client waits for the server to
respond and reloads the entire page with the
data from the response (Step 4). While such a
synchronous request is being processed on the
server, the user cannot interact with the client
web page.
 Frequent long periods of waiting, due perhaps
to Internet congestion, have led some users to
refer to the World Wide Web as the “World Wide
Wait”
 If the user interacts with and submits another
Mekonnen M. Ambo University 14
Types of web page

Static
 A static website is one that has web pages stored

on the server in the format that is sent to a client


web browser
 This type of website usually displays the same

information to all visitors

Mekonnen M. Ambo University 15


Dynamic
 A dynamic website is one that changes or

customizes itself frequently and automatically.


 the code running on the web server might combine

stored HTML fragments with news stores retrieved


from a database or another web site via RSS to
produce a page that includes the latest
information.
 Dynamic sites can be interactive by using HTML

forms, storing and reading back browser cookies

Mekonnen M. Ambo University 16


Client and server side scripting
 Client refers to the end-user's computer or a
program running on that computer.
 Server refers to a central computer (or a program
running on a central computer) that clients connect
to and interact with.
 Clients and Servers connect via the Internet or a
local network such as an intranet.
 Differences between client-side and server-side are
important when programming for the World Wide
Web.
 In most cases, creating a dynamic web site requires
both client-side programming (e.g. JavaScript) and
Mekonnen M. Ambo University 17
Programming VS scripting
 Programming languages generally have strict rules
of syntax, often need to be compiled, and usually
produce code that can run more or less
independently of other software.
 Scripting languages are generally less strict about
syntax, are usually interpreted rather than compiled,
and often produce code that works with another
application (e.g. a web browser or a web server).
 Most newcomers find scripting languages easier to
learn.
 JavaScript and PHP (in its usual form) are both
scripting languages.
Mekonnen M. Ambo University 18
How HTML?
How clients can request HTML documents stored on a
server?
 We don't usually make web pages just to be viewed

locally. We want to place the HTML files on a file


server that is part of Internet! You do this by
uploading the pages to An ISP (Internet Service
Provider). As you can see in The diagram below

Setting up a Server
 You can set up an HTTP server on an server machine

using different program.


 On a Windows you can set up xamp/wamp that

include the Apache Web Server.


Mekonnen M. Ambo University 19
How HTML?

Using
Uploading Data

Fig 3
Mekonnen M. Ambo University 20

You might also like