Chapter 2 Client/Server Applications

Slides:



Advertisements
Similar presentations
WeB application development
Advertisements

4.01 How Web Pages Work.
The Client-Server Model for the Web 1. A Web Client (usually in the form of a web browser) makes an HTTP request to a specific web server. 2. The Web Server.
Web Forms and ASP.NET Programming Right from the Start with Visual Basic.NET 1/e 12.
CIS101 Introduction to Computing Week 05. Agenda Your questions Exam next week - Excel Introduction to the Internet & HTML Online HTML Resources Using.
World Wide Web1 Applications World Wide Web. 2 Introduction What is hypertext model? Use of hypertext in World Wide Web (WWW) – HTML. WWW client-server.
Introduction to HTML 2006 CIS101. What is the Internet? Global network of computers that are connected and communicate via a series of Protocols Protocols.
Introduction to HTML 2006 INT197B. What is the Internet? Global network of computers that are connected and communicate via a series of Protocols Protocols.
Introduction to HTML 2004 CIS101. What is the Internet? Global network of computers that are connected and communicate via a series of Protocols Protocols.
Topics in this presentation: The Web and how it works Difference between Web pages and web sites Web browsers and Web servers HTML purpose and structure.
CIS101 Introduction to Computing Week 06. Agenda Your questions Excel Exam during second hour Our status after the snow day Introduction to the Internet.
Web Programming Language Dr. Ken Cosh Week 1 (Introduction)
Christopher M. Pascucci Basic Structural Concepts of.NET Browser – Server Interaction.
1 Introduction to Web Development. Web Basics The Web consists of computers on the Internet connected to each other in a specific way Used in all levels.
INTRODUCTION TO WEB DATABASE PROGRAMMING
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.
Databases and the Internet. Lecture Objectives Databases and the Internet Characteristics and Benefits of Internet Server-Side vs. Client-Side Special.
DATA COMMUNICATION DONE BY: ALVIN SAMPATH CARLVIN SAMPATH.
1 Chapter 2 & Chapter 4 §Browsers. 2 Terms §Software §Program §Application.
XHTML Introductory1 Linking and Publishing Basic Web Pages Chapter 3.
Chapter 17 - Deploying Java Applications on the Web1 Chapter 17 Deploying Java Applications on the Web.
Unit 1 – Web Concepts Instructor: Brent Presley. ASSIGNMENT Read Chapter 1 Complete lab 1 – Installing Portable Apps.
20-753: Fundamentals of Web Programming 1 Lecture 1: Introduction Fundamentals of Web Programming Lecture 1: Introduction.
HTML Internet Basics & Beyond. What The Heck Is HTML? HTML is the language of web pages. In order to truly understand HTML, you need to know a little.
Active Server Pages  In this chapter, you will learn:  How browsers and servers interacted on the Internet when the Internet first became popular 
1 Welcome to CSC 301 Web Programming Charles Frank.
Copyright © Terry Felke-Morris WEB DEVELOPMENT & DESIGN FOUNDATIONS WITH HTML5 7 TH EDITION Chapter 1 Key Concepts 1.
McLean HIGHER COMPUTER NETWORKING Lesson 5 HTML Description of HTML web page Creating a simple HTML web page.
INTRODUCTION TO WEB APPLICATION Chapter 1. In this chapter, you will learn about:  The evolution of the Internet  The beginning of the World Wide Web,
Introducing the World Wide Web Internet- a structure made up of millions of interconnected computers whose users communicate with each other and share.
Chapter 4 Applets Cop Why Applets? WWW makes huge information available to anyone with web browser. Web server send web pages and images to your.
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.
HTML HyperText Markup Language. Text Files An array of bytes stored on disk Each element of the array is a text character A text editor is a user program.
Internet Applications (Cont’d) Basic Internet Applications – World Wide Web (WWW) Browser Architecture Static Documents Dynamic Documents Active Documents.
Javascript JavaScript is what is called a client-side scripting language:  a programming language that runs inside an Internet browser (a browser is also.
Chapter 27 Getting “Web-ified” (Web Applications) Clearly Visual Basic: Programming with Visual Basic nd Edition.
 Before you continue you should have a basic understanding of the following:  HTML  CSS  JavaScript.
Introduction to HTML Simple facts yet crucial to beginning of study in fundamentals of web page design!
Introduction to the World Wide Web & Internet CIS 101.
The Internet Salihu Ibrahim Dasuki (PhD) CSC102 INTRODUCTION TO COMPUTER SCIENCE.
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.
4.01 How Web Pages Work.
4.01 How Web Pages Work.
Online PD Basic HTML The Magic Of Web Pages
Web Programming Language
4.01 How Web Pages Work.
Computing with C# and the .NET Framework
Project 1 Introduction to HTML.
Chapter 3 Program Design
Introduction to Dynamic Web Programming
Development of Web Applications - Introduction
Section 6.3 Server-side Scripting
Chapter 1 Introduction to HTML.
HTML & teh internets.
Project 1 Introduction to HTML.
Introduction to XHTML.
PHP / MySQL Introduction
Chapter 27 WWW and HTTP.
Objective Understand web-based digital media production methods, software, and hardware. Course Weight : 10%
Introduction to HTML Simple facts yet crucial to beginning of study in fundamentals of web page design!
Document Structure & HTML
DD Sir-Infomatics Web Development Part-1.
An Introduction to JavaScript
4.01 How Web Pages Work.
Client-Server Model: Requesting a Web Page
Web Servers (IIS and Apache)
4.01 How Web Pages Work.
Introduction to JavaScript
Web Application Development Using PHP
Presentation transcript:

Chapter 2 Client/Server Applications 954240 Web Programming Chapter 2 Client/Server Applications 954240 Web Programming Modern Management and Information Technology College of Arts, Media and Technology, Chiang Mai University

Contents Client/Server Design in Web Applications 954240 Web Programming Contents Client/Server Design in Web Applications Working with Files and Folders What Languages Will I Use? What Software Will I Need?

Client/Server Design in Web Applications

Client/Server Design in Web Applications Recall from Chapter 1: a client application provides an interface to the user and waits for the user to request some action a client application calls a server application to process the request a server application sends back a response a client application receives the response and present to the user

Client/Server Design in Web Applications Example of client/server design Source: Mike O’Kane (2011) A Web-Based Introduction to Programming

Client/Server Design in Web Applications Recall from Chapter 1: A single server can deliver the same services to any number of clients. Changes can be made on the server with no need to make changes on the client (ex. update software on the server, not on every clients) A Web application is an example of an Internet-based client/server design

Client/Server Design in Web Applications 954240 Web Programming Client/Server Design in Web Applications To develop a Web-based applications: - We must create files that contain the instructions for our Web pages and store them on a Web server. - Then, the server can response to the requests. In this course,

Working with Files and Folders

Working with Files and Folders 954240 Web Programming Working with Files and Folders In this course you will use different extensions for your files: Plain text files HTML files PHP files

Working with Files and Folders 954240 Web Programming Working with Files and Folders Plain text files - Using a .txt or .dat extension - Used to store simple data - Ex. you might create a file named “scores.txt” that contains a list of student scores.

Working with Files and Folders 954240 Web Programming Working with Files and Folders HTML files - Using a .html extension - Used to store the markup instructions to allow the user to enter information - Ex. you might create a file named “wages.html“ that contains a Web page with a form for the user to submit their hours worked and hourly wage.

Working with Files and Folders 954240 Web Programming Working with Files and Folders PHP files - Using a .php extension - Used to store the source code. PHP programs will receive information from the user or look up data in files to process operations and generate output. - Ex, you might create a file named “wages.php” that contains the source code to receive information, then calculate and display the pay.

Working with Files and Folders 954240 Web Programming Working with Files and Folders Files are usually organized into folders for ease of management You can access files on disks located in local drives (in your personal computer) You can also access files on disks in remote disk drives, (in other computers => server) through a network such as the Internet

Working with Files and Folders 954240 Web Programming Working with Files and Folders However, in this course, we will use a software that allows you to run a Web server on your local computer with no need for Internet access in order to work simply and securely

What Languages Will I Use?

What Languages Will I Use? 954240 Web Programming What Languages Will I Use? You will write your Web programs using a combination of two languages: HTML (Hypertext Markup Language) PHP (PHP Hypertext Preprocessor)

What Languages Will I Use? 954240 Web Programming What Languages Will I Use? HTML (Hypertext Markup Language) - Provides the markup instructions that you will use to create and format the Web pages that display the user interface for your Web applications - You will use HTML to display headings, paragraphs, forms, tables, buttons, and images - Everything you learn will be based on current HTML standards, which is known as XHTML

What Languages Will I Use? 954240 Web Programming What Languages Will I Use? PHP (PHP Hypertext Preprocessor) PHP is a programming language that you will use to write server-based program that process user requests by: - performing calculations - validating input making decisions - reading data from files/databases - writing output to files/databases - returning results to the user, etc.

What Languages Will I Use? 954240 Web Programming What Languages Will I Use? From an example of a simple client/server application from Chapter 1, there are two web pages: 1 2 Source: Mike O’Kane (2011) A Web-Based Introduction to Programming

What Languages Will I Use? 954240 Web Programming What Languages Will I Use? The first Web page is generated from HTML code located in an .html file on a Web server 1 A form that the user can enter information (input) and click a button

What Languages Will I Use? 954240 Web Programming What Languages Will I Use? When the user click the button, the browser sends the input (10.75 and 25) back to the server with a request to process a PHP code file The PHP file receives input, calculates a wage based on the input, and generates a new HTML page to display the results (The second page)

What Languages Will I Use? 954240 Web Programming What Languages Will I Use? The second Web page is created by the PHP file and the server returns this to the Web browser for display to the user 2

What Languages Will I Use? 954240 Web Programming What Languages Will I Use?

What Software Will I Need?

What Software Will I Need? 954240 Web Programming What Software Will I Need? A text editor to create HTML and PHP files. A Web browser to submit requests to the Web server and display the result Web pages A Web server that can process requests