Introduction to Dynamic Web Content Dr. Charles Severance www.php-intro.com.

Slides:



Advertisements
Similar presentations
IS 6116 Introduction – 10 Jan Lecturer Details Aonghus Sugrue Website: aonghussugrue.wordpress.com
Advertisements

Copyright © 2004 ProsoftTraining, All Rights Reserved. Lesson 11: Advanced Web Technologies.
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.
What is it? –Large Web sites that support commercial use cannot be written by hand What you’re going to learn –How a Web server and a database can be used.
Web architecture Dr Jim Briggs Web architecture.
Web Page Behavior IS 373—Web Standards Todd Will.
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.
HTTP Overview Vijayan Sugumaran School of Business Administration Oakland University.
PHP By Dr. Syed Noman Hasany. PHP PHP was originally created by Rasmus Lerdorf in PHP stands for PHP: Hypertext Preprocessor (a recursive acronym).
Forms and PHP Dr. Charles Severance
WEB DESIGN SOME FOUNDATIONS. SO WHAT IS THIS INTERNET.
Web Page A page displayed by the browser. Website Collection of multiple web pages Web Browser: A software that displays web pages on client computer.
PHP and MySQL Week#1  Course Plan.  Introduction to Dynamic Web Content.  Setting Up Development Server Eng. Mohamed Ahmed Black 1.
Sys Prog & Scripting - HW Univ1 Systems Programming & Scripting Lecture 15: PHP Introduction.
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.
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.
Introduction to JavaScript Dr. John P. Abraham University of Texas – Pan American.
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.
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.
HTML. Principle of Programming  Interface with PC 2 English Japanese Chinese Machine Code Compiler / Interpreter C++ Perl Assembler Machine Code.
Creating Dynamic Web Pages Using PHP and MySQL CS 320.
Kingdom of Saudi Arabia Ministry of Higher Education Al-Imam Muhammad Ibn Saud Islamic University College of Computer and Information Sciences Chapter.
1 Welcome to CSC 301 Web Programming Charles Frank.
1Computer Sciences Department Princess Nourah bint Abdulrahman University.
Web Design (1) Terminology. Coding ‘languages’ (1) HTML - Hypertext Markup Language - describes the content of a web page CSS - Cascading Style Sheets.
Dynamic web content HTTP and HTML: Berners-Lee’s Basics.
Intro to PHP IST2101. Review: HTML & Tags 2IST210.
Overview Web Session 3 Matakuliah: Web Database Tahun: 2008.
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
IS-907 Java EE World Wide Web - Overview. World Wide Web - History Tim Berners-Lee, CERN, 1990 Enable researchers to share information: Remote Access.
Web Technologies Lecture 1 The Internet and HTTP.
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.
Python for Informatics: Exploring Information
JavaScript and Ajax (Internet Background) Week 1 Web site:
 Before you continue you should have a basic understanding of the following:  HTML  CSS  JavaScript.
Forms and PHP Dr. Charles Severance
Introduction to the World Wide Web & Internet CIS 101.
PHP Arrays Dr. Charles Severance
Introduction to JavaScript MIS 3502, Spring 2016 Jeremy Shafer Department of MIS Fox School of Business Temple University 2/2/2016.
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.
Dr. Abdullah Almutairi Spring PHP is a server scripting language, and a powerful tool for making dynamic and interactive Web pages. PHP is a widely-used,
Overview Web Technologies Computing Science Thompson Rivers University.
Introduction to Dynamic Web Content Dr. Charles Severance
Web Development. Agenda Web History Network Architecture Types of Server The languages of the web Protocols API 2.
Introduction and HTML overview
Introduction to Dynamic Web Content
Our Technologies Dr. Charles Severance
Web Technologies Computing Science Thompson Rivers University
HTML Charles Severance
Introduction to Dynamic Web Programming
Section 6.3 Server-side Scripting
Web Concepts Lesson 2 ITBS2203 E-Commerce for IT.
CSC 301 Web Programming Charles Frank.
HTTP Parameters and Arrays
Introduction Web Environments
PHP / MySQL Introduction
Introduction to Dynamic Web Content
Using jQuery Dr. Charles Severance
Secure Web Programming
Introduction to World Wide Web
BOF #1 – Fundamentals of the Web
Introduction to Dynamic Web Content
Web Technologies Computing Science Thompson Rivers University
Model View Controller (MVC)
Presentation transcript:

Introduction to Dynamic Web Content Dr. Charles Severance

Internet HTML CSS JavaScript AJAX HTTP Request Response GET POST PHP Templates SQL MVC Cookies Redirect

Internet HTML CSS JavaScript AJAX HTTP Request Response GET POST PHP Templates SQL MVC Cookies Redirect

What is a Protocol? A set of rules that all parties follow for so we can predict each other's behavior And not bump into each other On two-way roads in USA, drive on the right hand side of the road On two-way roads in the UK drive on the left hand side of the road

HTTP The HyperText Transport Protocol is the set of rules to allow browsers to retrieve web documents from servers over the Internet

HTTP - Hypertext Transport 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

protocolhostdocument Robert Cailliau CERN 1:17 - 2:19

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.

Browser Web Server 80

Browser Web Server 80 Click

Browser Web Server GET chuck.com/page2.htm 80 Request Click

Browser Web Server GET chuck.com/page2.htm 80 Request Click

Browser Web Server GET chuck.com/page2.htm The Second Page If you like, you can switch back to the First Page. 80 RequestResponse Click

Browser Web Server GET chuck.com/page2.htm The Second Page If you like, you can switch back to the First Page. 80 RequestResponse Click Parse/ Render

Internet Standards The standards for all of the Internet protocols (inner workings) are developed by an organization Internet Engineering Task Force (IETF) Standards are called “RFCs” - “Request for Comments” Source:

Making an HTTP request Connect to the server like a "hand shake" Request a document (or the default document) GET HTTP/1.0 GET HTTP/1.0 GET HTTP/1.0

$ telnet 80 Trying Connected to character is '^]'. GET HTTP/1.0 HTTP/ OK Date: Thu, 08 Jan :57:52 GMT Last-Modified: Sun, 19 Jan :25:43 GMT Connection: close Content-Type: text/html The First Page If you like, you can switch to the Second Page. Connection closed by foreign host. Browser Web Server

Accurate Hacking in the Movies Matrix Reloaded Bourne Ultimatum Die Hard

Getting to Know Our Browsers

Find Developer Mode Chrome: View->Developer FireFox: Safari: Preferences -> Advanced -> Show Develop Menu IE: ???

Browser Web Server GET chuck.com/page2.htm The Second Page If you like, you can switch back to the First Page. 80 RequestResponse Parse/ Render Click

More Detail... Browser – HTML, CSS, "Document Object Model" (the DOM) and JavaScript Web Server – Apache(or similar) we server with a PHP extension installed Database Server running MySQL, Postgress, Oracle, SQL Server or similar

Document Object Model Shady Grove Aeolian Over the River, Charlie Dorian

Web ServerDatabase Server Time Apache PHP MySql Browser JavaScri pt DOMDOM

Web ServerDatabase Server Time Apache PHP MySql Browser JavaScri pt DOMDOM

Web ServerDatabase Server Time Apache PHP MySql Browser JavaScri pt DOMDOM

Our Technologies

Early History of Important* Programming Languages Machine Language (1940's) Assembly Language (1940's) FORTRAN - Mathematics expressions (1955) C - High-productivity Assembly Language (1969) * As defined by Dr. Chuck

Science Calculations System System Scripting/ Interpreted Scripting/ Interpreted C uses curly braces { } for code blocks.

PHP <?php echo "Hello World. Today is ".date("l").". "; ?>How are you? Hello World. Today is Wednesday. How are you? PHP is the most widely used scripting language for web programming. PHP extends HTML pages by adding server-executed code segments to HTML pages. The output of the execution of the PHP code is merged into the HTML page.

JavaScript document.write("Hello World. Today is " + Date() ); JavaScript is a C-like programming language that can be included in an HTML web page. JavaScript allows the builder of a web page to embed dynamic elements within a web page. JavaScript programs run in the browser (i.e. the Client)

MySQL INSERT INTO users VALUES('Smith', 'John', SELECT surname,firstname FROM users WHERE MySQL is one of the most popular free and open source database engines in the market place. MySQL powers Facebook, Yahoo!, WordPress, Drupal, Joomla, and millions of other dynamic web sites.

The History of PHP Rasmus Lerdorf Not a trained computer scientist Consultant building dynamic web sites - got tired of doing the same thing over and over in C Reusable bits + HTML Templates

JavaScript: Brendan Eich Invented JavaScript in May 1995 in ten days

Apache Web Server Originally Developed at National Center for Supercomputing Applications in 1994 Open Source First project / product of the Apache Foundation Brian Behlendorf founded Apache

Acknowledgements / Contributions These slides are Copyright Charles R. Severance ( as part of 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 Continue new Contributors and Translators here