1 Welcome to CSC 301 Web Programming Charles Frank.

Slides:



Advertisements
Similar presentations
TCP/IP Protocol Suite 1 Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display. Chapter 22 World Wide Web and HTTP.
Advertisements

DT228/3 Web Development WWW and Client server model.
 2004 Prentice Hall, Inc. All rights reserved. Chapter 21 – Web Servers (IIS and Apache) Outline 21.1 Introduction 21.2 HTTP Request Types 21.3 System.
 2003 Prentice Hall, Inc. All rights reserved. Chapter 21 – Web Servers (IIS and Apache) Outline 21.1 Introduction 21.2 HTTP Request Types 21.3 System.
© 2010, Robert K. Moniot Chapter 1 Introduction to Computers and the Internet 1.
The Internet Useful Definitions and Concepts About the Internet.
Introduction to Web Database Processing
Introduction to Web Interface Technology (CSE2030)
The World Wide Web and the Internet Dr Jim Briggs 1WUCM1.
Chapter 1 Introduction to Web Development. 2 Introduction to Web Development In 1990 and 1991,Tim Berners-Lee created the World Wide Web at the European.
Definitions, Definitions, Definitions Lead to Understanding.
Introduction to Web Interface Technology (CSE2030)
How Clients and Servers Work Together. Objectives Learn about the interaction of clients and servers Explore the features and functions of Web servers.
CP476 Internet Computing Browser and Web Server 1 Web Browsers A client software program that allows you to access and view Web pages on the Internet –Examples.
Chapter 11 ASP.NET JavaScript, Third Edition. 2 Objectives Learn about client/server architecture Study server-side scripting Create ASP.NET applications.
© 2004, Robert K. Moniot Chapter 1 Introduction to Computers and the Internet.
ECA 228 Internet/Intranet Design I Intro to the Web.
Quick Tour of the Web Technologies: The BIG picture LECTURE A bird’s eye view of the different web technologies that we shall explore and study.
WEB DESIGN SOME FOUNDATIONS. SO WHAT IS THIS INTERNET.
1 Web Servers (IIS and Apache) Outline 9.1 Introduction 9.2 HTTP Request Types 9.3 System Architecture 9.4 Client-Side Scripting versus Server-Side Scripting.
Electronic Commerce Last Week
CSCI 323 – Web Development Chapter 1 - Setting the Scene We’re going to move through the first few chapters pretty quick since they are a review for most.
INTRODUCTION TO WEB DATABASE PROGRAMMING
IT 210 The Internet & World Wide Web introduction.
CNIT 132 Intermediate HTML and CSS Course Overview.
Web Servers1-1 Web Servers Xingquan (Hill) Zhu
Introduction to ASP.NET. Prehistory of ASP.NET Original Internet – text based WWW – static graphical content  HTML (client-side) Need for interactive.
1 Web Server Concepts Dr. Awad Khalil Computer Science Department AUC.
Copyright © cs-tutorial.com. Introduction to Web Development In 1990 and 1991,Tim Berners-Lee created the World Wide Web at the European Laboratory for.
Introduction to Web Development
Chapter 1: Introduction to Web
Chapter 16 The World Wide Web Chapter Goals Compare and contrast the Internet and the World Wide Web Describe general Web processing Describe several.
2013Dr. Ali Rodan 1 Handout 1 Fundamentals of the Internet.
Postacademic Interuniversity Course in Information Technology – Module C1p1 Contents Data Communications Applications –File & print serving –Mail –Domain.
Chapter 17 - Deploying Java Applications on the Web1 Chapter 17 Deploying Java Applications on the Web.
 2001 Prentice Hall, Inc. All rights reserved. 1 Chapter 21 - Web Servers (IIS, PWS and Apache) Outline 21.1 Introduction 21.2 HTTP Request Types 21.3.
HOW WEB SERVER WORKS? By- PUSHPENDU MONDAL RAJAT CHAUHAN RAHUL YADAV RANJIT MEENA RAHUL TYAGI.
Unit – I CLIENT / SERVER ARCHITECTURE. Unit Structure  Evolution of Client/Server Architecture  Client/Server Model  Characteristics of Client/Server.
MySQL and PHP Internet and WWW. Computer Basics A Single Computer.
 2004 Prentice Hall, Inc. All rights reserved. 1 Segment – 6 Web Server & database.
Copyright © Curt Hill, Client – Server Computing An important paradigm.
Web Pages with Features. Features on Web Pages Interactive Pages –Shows current date, get server’s IP, interactive quizzes Processing Forms –Serach a.
Kingdom of Saudi Arabia Ministry of Higher Education Al-Imam Muhammad Ibn Saud Islamic University College of Computer and Information Sciences Chapter.
Web Design (1) Terminology. Coding ‘languages’ (1) HTML - Hypertext Markup Language - describes the content of a web page CSS - Cascading Style Sheets.
1 MSCS 237 Overview of web technologies (A specific type of distributed systems)
Creating Web Documents: How the Web works Client / Server Protocols Access methods Homework: Complete experiment & report on Discussion Forum.
World Wide Web “WWW”, "Web" or "W3". World Wide Web “WWW”, "Web" or "W3"
Web Pages with Features. Features on Web Pages Interactive Pages –Shows current date, get server’s IP, interactive quizzes Processing Forms –Serach a.
1 Web Servers (Chapter 21 – Pages( ) Outline 21.1 Introduction 21.2 HTTP Request Types 21.3 System Architecture.
1 WWW. 2 World Wide Web Major application protocol used on the Internet Simple interface Two concepts –Point –Click.
Module: Software Engineering of Web Applications Chapter 2: Technologies 1.
27.1 Chapter 27 WWW and HTTP Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
27.1 Chapter 27 WWW and HTTP Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
Introduction and Principles Web Server Scripting.
Internet Applications (Cont’d) Basic Internet Applications – World Wide Web (WWW) Browser Architecture Static Documents Dynamic Documents Active Documents.
ASP-2-1 SERVER AND CLIENT SIDE SCRITPING Colorado Technical University IT420 Tim Peterson.
Web programming Part 1: environment 由 NordriDesign 提供
JavaScript and Ajax (Internet Background) Week 1 Web site:
Introduction to the World Wide Web & Internet CIS 101.
INTERNET AND . WHAT IS INTERNET The Internet can be defined as the wired or wireless mode of communication through which one can receive, transmit.
CSE541: Web Applications Special Thanks to M. Abdur Rahman.
6/28/ A global mesh of interconnected networks (internetworks) meets these human communication needs. Some of these interconnected networks are.
1 Chapter 1 INTRODUCTION TO WEB. 2 Objectives In this chapter, you will: Become familiar with the architecture of the World Wide Web Learn about communication.
Distributed Control and Measurement via the Internet
WWW and HTTP King Fahd University of Petroleum & Minerals
Warm Handshake with Websites, Servers and Web Servers:
Chapter 27 WWW and HTTP.
Web Page Concept and Design :
Web Servers (IIS and Apache)
Computer Networks Protocols
Presentation transcript:

1 Welcome to CSC 301 Web Programming Charles Frank

Course Goals  Learn to create Web-based client / server applications  Learn popular Web programming / scripting languages  Learn some simple Web-oriented database techniques  Learn some issues around designing and testing client-server programming (there are differences from programming for a single computer) 2

Software  A Web browser such as Microsoft Internet Explorer 7+, Mozilla Firefox, Safari etc.  A code-based HTML editor (not a WYSIWYG…), or a text editor Notepad, Notepad++ on Win, SimpleText on Mac PHP Coder IDE,  A Web server, such as Apache HTTP Server or Microsoft Internet Information Services  PHP 5.x → a server-side scripting language developed by the PHP group (  MySQL 4.1+ → an open source database management system developed MySQL AB ( 3

Organization  Server is cscdb.nku.edu (Web + Database)  Account name is ?  Password is ?  Access through: FTP ○ connect using WS_FTP LE ( ○ upload your files ○ test your programs 4

Organization  To access your Web pages, go to  Your account will have a directory called as your username Your html start pages go here Good practices is to name main page index.html Browser access will go to this directory 5

WWW Client/Server Model 6 Web client/server architecture

The Client/Server Model  The Internet and the www function according to the client/server model or paradigm  Term “Client/Server” : Can describe a relationship between two computer programs – the "client" and the "server". ○ Client - requests some type of service (such as a file or database access) from the server. ○ Server - fulfills the request and transmits the results to the client over a network Refers also to computers, joined by a network, that run the client / server programs. 7

Web Clients and Servers Web client  Refers to both a computer and an application running on that computer  As a machine - connected to the Internet when needed  As an application: Program that runs on a user's computer ○ Called a Browser Communicates user's commands (=requests for Web resources) to the Web and interprets and displays the responses (=Web pages) 8

Web Clients and Servers Web Client  Can execute some limited computational tasks e.g. Java applets, Javascript  Generally act as a “smart terminal” and can't run applications on their own.  Uses HTTP (Hypertext Transfer Protocol)

Web Clients and Servers Web Server  Refers to both a computer and a program running on that computer  As a computer: Continually connected to the Internet Runs web server software (such as Apache or Internet Information Server) 10

Web Servers  As an application: Receives messages from a client and performs the requested service ○ Send back status code, web page, and associated files ○ Execute a script or program ○ Log message traffic ○ Provide secure communications ○ Support many simultaneous clients Uses HTTP (Hypertext Transfer Protocol) 11

WWW Client/Server Model HTTP protocol the main protocol used for communication between a browser and a Web server 12

HTTP protocol works by sending commands over a TCP connection The browser initiates a TCP connection to the web server. The browser sends request for a particular web page. The browser reads the contents of the web page from the TCP connection and displays it. The browser closes the TCP connection used to transfer the web page.

HTTP protocol Each separate item in a web page (e.g., pictures, audio) requires a separate TCP connection. HTTP specifies commands that the client issues to the server and the responses that the server sends back to the client.

15 User of the client machine types in a URL URL = Uniform Resource Locator, represents the address of a resource on the Internet Recall the anatomy of an URL, consists of: protocol, domain name, hierarchical location of file on web server, resource name Serving a Page

16 Server name is translated to an IP address via DNS client (Netscape) server (Apache) Serving a Page

17 Client connects to server using IP address and port number Serving a Page

18 Client determines path and file to request Serving a Page

19 Client sends HTTP request to server Serving a Page

20 Server determines which file to send Serving a Page

21 Server sends response code and the document Serving a Page

22 Connection is broken Serving a Page

23 HTTP is Stateless = no persistent client/server connection Generic not tied to web browsers exclusively can serve any data type from a command window, you can connect to a Web server and request resources as a Web browser does; in a command window: telnet cscdb.nku.edu 80 get /csc301/campana1/processPostFormData.php HTTP/1.0 Serving a Page

Client-Server Capabilities Clients can: Format output for display Accept user input Do limited computation Including verification of user input Modify attributes of displayed page 24

Client-Server Capabilities Clients can't: Read or write files (other than very simple ones) Access databases Share data among users

Client-Server Capabilities Servers can: Retrieve and send web pages Create dynamic web pages Read and write files Access databases Share web pages among many users 26

Client-Server Capabilities Servers can't: Display web pages themselves Interact directly with the user Modify displayed pages in real-time (e.g. highlight item when mouse passes over it)

More about Web Client-Server Architecture  A system consisting of a client and a server is known as a two-tier system Client tier, or user interface tier, or “front end” Server, or “back end” 28

More about Web Client-Server Architecture  A three-tier, or multi-tier, client/server system consists of three distinct pieces: Client tier Processing tier, or middle tier – still the Web server Data storage tier  In both cases – distributed application = multiple computers share the computing responsibility for a single application

More about Web Client-Server Architecture 30 The design of a three-tier client/server system The two-tier client-server architecture is a physical arrangement in which the client and the server are two separate computers. Three-tier client-server architecture is more conceptual than physical as the storage tier and the processing tier can be located on the same server…

Client-Side or Server-Side?  In some cases, decision is simple: If you want to control the Web browser → where / tool? If you want to access a database on a server → where / tool? 31

Client-Side or Server-Side?  Tasks that both sides can accomplish (such as validating forms)? General rule: use client-side scripting to handle user interface processing and light processing, such as validation; use server- side scripting for intensive calculations and data storage