Introduction to Dynamic Web Content

Slides:



Advertisements
Similar presentations
Introduction to PHP Dr. Charles Severance
Advertisements

HTTP Request/Response Process 1.Enter URL ( in your browser’s address bar. 2.Your browser uses DNS to look up IP address of server.com.
Project 1 Introduction to HTML.
Web architecture Dr Jim Briggs Web architecture.
Introduction to Web Based Application. Web-based application TCP/IP (HTTP) protocol Using WWW technology & software Distributed environment.
The World Wide Web and the Internet Dr Jim Briggs 1WUCM1.
Getting PHP Hosting Dr. Charles Severance. What We Need We want to be able to put up our application on the web so anyone can access our URL (and so we.
Forms and PHP Dr. Charles Severance
8/17/2015CS346 PHP1 Module 1 Introduction to PHP.
1 HTML and CGI Scripting CSC8304 – Computing Environments for Bioinformatics - Lecture 10.
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.
Server-side Scripting Powering the webs favourite services.
TCP/IP Protocol Suite 1 Chapter 22 Upon completion you will be able to: World Wide Web: HTTP Understand the components of a browser and a server Understand.
1 Chapter 2 & Chapter 4 §Browsers. 2 Terms §Software §Program §Application.
10/5/2015CS346 PHP1 Module 1 Introduction to PHP.
HTML. Principle of Programming  Interface with PC 2 English Japanese Chinese Machine Code Compiler / Interpreter C++ Perl Assembler Machine Code.
1 Welcome to CSC 301 Web Programming Charles Frank.
Web Design (1) Terminology. Coding ‘languages’ (1) HTML - Hypertext Markup Language - describes the content of a web page CSS - Cascading Style Sheets.
Introduction to HTML. Today’s Discussion What is HTML ? What is HTML ? What is Web Page ? What is Web Page ? Web Server Web Server Web Browser Web Browser.
World Wide Web “WWW”, "Web" or "W3". World Wide Web “WWW”, "Web" or "W3"
Introduction to Dynamic Web Content Dr. Charles Severance
1 WWW. 2 World Wide Web Major application protocol used on the Internet Simple interface Two concepts –Point –Click.
Session 1 Chapter 1 - Introduction to Web Development ITI 133: HTML5 Desktop and Mobile Level I
Module: Software Engineering of Web Applications Chapter 2: Technologies 1.
HTML Concepts and Techniques Fifth Edition Chapter 1 Introduction to HTML.
Chapter 1 Introduction to HTML, XHTML, and CSS HTML5 & CSS 7 th Edition.
Python for Informatics: Exploring Information
Forms and PHP Dr. Charles Severance
COSC 2328 – Web Programming.  PHP is a server scripting language  It’s widely-used and free  It’s an alternative to Microsoft’s ASP and Ruby  PHP.
Overview Web Technologies Computing Science Thompson Rivers University.
Introduction to Dynamic Web Content Dr. Charles Severance
Chapter 1 Getting Started with ASP.NET Objectives Why ASP? To get familiar with our IDE (Integrated Development Environment ), Visual Studio. Understand.
Dr. Charles Severance Using Handlebars Dr. Charles Severance
Web Programming Language
Introduction to Dynamic Web Content
PHP Arrays Dr. Charles Severance
Our Technologies Dr. Charles Severance
Web Technologies Computing Science Thompson Rivers University
IS1500: Introduction to Web Development
HTML Charles Severance
Web Concepts Lesson 2 ITBS2203 E-Commerce for IT.
Cascading Style Sheets
HTTP – An overview.
Getting PHP Hosting Dr. Charles Severance
Using JSON Dr. Charles Severance
Chapter 1 Introduction to HTML.
Redirect, Routing, and Authentication
Introduction to PHP Dr. Charles Severance
COMP2322 Lab 2 HTTP Steven Lee Feb. 8, 2017.
HTTP Parameters and Arrays
Chapter 27 WWW and HTTP Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
PHP Arrays Dr. Charles Severance
Introduction Web Environments
PHP / MySQL Introduction
IS333D: MULTI-TIER APPLICATION DEVELOPMENT
PHP + Oracle = Data-Driven Websites
PHP Namespaces (in progress)
Web Browser server client 3-Tier Architecture Apache web server PHP
HTML5 Level I Session I Chapter 1 - Introduction to Web Development
Using jQuery Dr. Charles Severance
Secure Web Programming
Introduction to World Wide Web
CIS 133 mashup Javascript, jQuery and XML
BOF #1 – Fundamentals of the Web
Introduction to Dynamic Web Content
Web Technologies Computing Science Thompson Rivers University
Client-Server Model: Requesting a Web Page
Model View Controller (MVC)
* Web Servers/Clients * The HTTP Protocol
Presentation transcript:

Introduction to Dynamic Web Content Dr. Charles Severance www.wa4e.com Note from Chuck. If you are using these materials, you can remove my name and URL from this replace it with your own, but please retain the CC-BY logo on the first page as well as retain the entire last page when you remix and republish these slides.

Application Database End Software (i.e. PHP) Data Model User Developer SQL SQL Developer Database Tools (i.e. phpMyAdmin) DBA

http://www.dr-chuck.com/page1.htm Browser HTML CSS DOM JavaScript JQuery Web Server PHP MySQL Apache http://www.dr-chuck.com/page1.htm

HTTP - Hypertext Transfer Protocol The dominant Application Layer Protocol on the Internet Invented for the Web - to Retrieve HTML, Images, Documents etc Extended to be data in addition to documents - RSS, Web Services, etc.. Basic Concept - Make a Connection - Request a document - Retrieve the Document - Close the Connection http://en.wikipedia.org/wiki/Http

Uniform Resource Locator http://www.dr-chuck.com/page1.htm protocol host document

Getting Data From The Server Each the user clicks on an anchor tag with an href= value to switch to a new page, the browser makes a connection to the web server and issues a “GET” request - to GET the content of the page at the specified URL The server returns the HTML document to the Browser which formats and displays the document to the user.

Web Server 80 Browser

Web Server 80 Browser Click

Browser Web Server Request Click GET http://www.dr-chuck.com/page2.htm 80 GET http://www.dr-chuck.com/page2.htm Browser Click

Browser Web Server Request Click GET http://www.dr-chuck.com/page2.htm 80 GET http://www.dr-chuck.com/page2.htm Browser Click

Browser Web Server Request Response Click <h1>The Second Page</h1><p>If you like, you can switch back to the <a href="page1.htm">First Page</a>.</p> 80 GET http://www.dr-chuck.com/page2.htm Browser Click

Browser Web Server Request Response Parse/ Render Click <h1>The Second Page</h1><p>If you like, you can switch back to the <a href="page1.htm">First Page</a>.</p> 80 GET http://www.dr-chuck.com/page2.htm Browser Parse/ Render Click

Source: http://tools.ietf.org/html/rfc791 Internet Standards The standards for all of the Internet protocols (inner workings) are developed by an organization Internet Engineering Task Force (IETF) www.ietf.org Standards are called “RFCs” - “Request for Comments” Source: http://tools.ietf.org/html/rfc791

http://www.w3.org/Protocols/rfc2616/rfc2616.txt

Making an HTTP request Connect to the server like www.dr-chuck.com a "hand shake" Request a document (or the default document) GET http://www.dr-chuck.com/page1.htm HTTP/1.0 GET http://www.mlive.com/ann-arbor/ HTTP/1.0 GET http://www.facebook.com HTTP/1.0

Browser Web Server $ telnet www.dr-chuck.com 80 Trying 74.208.28.177... Connected to www.dr-chuck.com.Escape character is '^]'. GET http://www.dr-chuck.com/page1.htm HTTP/1.0 HTTP/1.1 200 OK Date: Thu, 08 Jan 2015 01:57:52 GMT Last-Modified: Sun, 19 Jan 2014 14:25:43 GMT Connection: close Content-Type: text/html <h1>The First Page</h1> <p>If you like, you can switch to the <a href="http://www.dr-chuck.com/page2.htm">Second Page</a>.</p> Connection closed by foreign host. Browser

Accurate Hacking in the Movies Matrix Reloaded Bourne Ultimatum Die Hard 4 ... http://nmap.org/movies.html

Getting to Know Our Browsers

Find Developer Mode Chrome: View->Developer FireFox: https://getfirebug.com/ Safari: Preferences -> Advanced -> Show Develop Menu

DEMO

Browser Web Server Request Response Parse/ Render <h1>The Second Page</h1><p>If you like, you can switch back to the <a href="page1.htm">First Page</a>.</p> 80 GET http://www.dr-chuck.com/page2.htm Browser Parse/ Render Click

This is only the beginning… In the Browser – HTML, CSS, "Document Object Model" (the DOM) and JavaScript In the Web Server – Apache(or similar) web server with a PHP extension installed In the Database Server running MySQL, Postgress, Oracle, SQL Server or similar

Time D OM Apache MySql PHP RRC/HTTP SQL Browser Web Server Database Server D OM Apache static files MySql Parse Request Parse Response php code PHP JavaScript RRC/HTTP SQL

Summary Many modern web applications use a stack of open source software working together While you can use frameworks to accelerate productivity, this course focuses on what is really going on so you can fully understand what frameworks are doing on your behalf

Acknowledgements / Contributions Continue new Contributors and Translators here These slides are Copyright 2010- Charles R. Severance (www.dr-chuck.com) as part of www.wa4e.com and made available under a Creative Commons Attribution 4.0 License. Please maintain this last slide in all copies of the document to comply with the attribution requirements of the license. If you make a change, feel free to add your name and organization to the list of contributors on this page as you republish the materials. Initial Development: Charles Severance, University of Michigan School of Information Insert new Contributors and Translators here including names and dates Note from Chuck. Please retain and maintain this page as you remix and republish these materials. Please add any of your own improvements or contributions.