Dynamic web content HTTP and HTML: Berners-Lee’s Basics.

Slides:



Advertisements
Similar presentations
17 HTML, Scripting, and Interactivity Section 17.1 Add an audio file using HTML Create a form using HTML Add text boxes using HTML Add radio buttons and.
Advertisements

PHP I.
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.
Languages for Dynamic Web Documents
Project 1 Introduction to HTML.
Server-Side vs. Client-Side Scripting Languages
Apache Tomcat Server – installation & use Server-side language-- use Java Server Pages Contrast Client-side languages HTML Forms Servers & Server-side.
Web Page Behavior IS 373—Web Standards Todd Will.
1 The World Wide Web Architectural Overview Static Web Documents Dynamic Web Documents HTTP – The HyperText Transfer Protocol Performance Enhancements.
Macromedia Dreamweaver 4 Advanced Level Course. Add Rollovers Rollovers or mouseovers are possibly the most popular effects used in designing Web pages.
Dynamic Web site With PHP and MySQL. MySQL The combination of MySQL database and PHP scripting language is optimum for building dynamic websites. MySQL.
Introduction to JavaScript. Aim To enable you to write you first JavaScript.
INTRO TO MAKING A WEBSITE Mark Zhang.  HTML  CSS  Javascript  PHP  MySQL  …That’s a lot of stuff!
2440: 141 Web Site Administration Web Server-Side Programming Professor: Enoch E. Damson.
Web Programming Language Dr. Ken Cosh Week 1 (Introduction)
HTML 1 Introduction to HTML. 2 Objectives Describe the Internet and its associated key terms Describe the World Wide Web and its associated key terms.
Chapter ONE Introduction to HTML.
WEB DESIGN SOME FOUNDATIONS. SO WHAT IS THIS INTERNET.
8/17/2015CS346 PHP1 Module 1 Introduction to PHP.
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.
Christopher M. Pascucci Basic Structural Concepts of.NET Browser – Server Interaction.
Linux Operations and Administration
McGraw-Hill/Irwin © 2004 by The McGraw-Hill Companies, Inc. All rights reserved. Beginning Active Server Pages Barry Sosinsky Valda Hilley Programming.
INTRODUCTION TO WEB DATABASE PROGRAMMING
M. Taimoor Khan * Java Server Pages (JSP) is a server-side programming technology that enables the creation of dynamic,
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.
© Cheltenham Computer Training 2001 Macromedia Dreamweaver 4 - Slide No 1 Macromedia Dreamweaver 4 Advanced Level Course.
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.
ASP Introduction Y.-H. Chen International College Ming-Chuan University Fall, 2004.
JavaScript – Quiz #9 Lecture Code:
Creating Dynamic Web Pages Using PHP and MySQL CS 320.
Active Server Pages  In this chapter, you will learn:  How browsers and servers interacted on the Internet when the Internet first became popular 
Lecture Note 1: Getting Started With ASP.  Introduction to ASP  Introduction to ASP An ASP file can contain text, HTML tags and scripts. Scripts in.
Web Design (1) Terminology. Coding ‘languages’ (1) HTML - Hypertext Markup Language - describes the content of a web page CSS - Cascading Style Sheets.
Intro to PHP IST2101. Review: HTML & Tags 2IST210.
Overview Web Session 3 Matakuliah: Web Database Tahun: 2008.
Web Design: Basic to Advanced Techniques Fall 2010 Mondays 7-9pm 200 Sutardja-Dai Hall Introduction to PHP.
Introduction to Dynamic Web Content Dr. Charles Severance
Creating a simple database This shows you how to set up a database using PHPMyAdmin (installed with WAMP)
Module: Software Engineering of Web Applications Chapter 2: Technologies 1.
Internet Applications (Cont’d) Basic Internet Applications – World Wide Web (WWW) Browser Architecture Static Documents Dynamic Documents Active Documents.
PART 2 INTRODUCTION TO DYNAMIC WEB CONTENT AND PHP.
ASP. ASP is a powerful tool for making dynamic and interactive Web pages An ASP file can contain text, HTML tags and scripts. Scripts in an ASP file are.
HTML Concepts and Techniques Fifth Edition Chapter 1 Introduction to HTML.
JavaScript Introduction and Background. 2 Web languages Three formal languages HTML JavaScript CSS Three different tasks Document description Client-side.
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.
Web Design Terminology Unit 2 STEM. 1. Accessibility – a web page or site that address the users limitations or disabilities 2. Active server page (ASP)
Web Cache. What is Cache? Cache is the storing of data temporarily to improve performance. Cache exist in a variety of areas such as your CPU, Hard Disk.
Dreamweaver - Forms questionnaire, register, login, etc.
Introduction to Dynamic Web Content Dr. Charles Severance
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.
Web Programming Language
Project 1 Introduction to HTML.
JavaScript and Ajax (Ajax Tutorial)
Introduction to Dynamic Web Programming
WWW and HTTP King Fahd University of Petroleum & Minerals
Chapter 1 Introduction to HTML.
Project 1 Introduction to HTML.
Section 17.1 Section 17.2 Add an audio file using HTML
Developing Web-Based Applications
PHP / MySQL Introduction
Database Driven Websites
PHP and Forms.
Architecture of the web
An Introduction to JavaScript
Client-Server Model: Requesting a Web Page
Web Application Development Using PHP
Presentation transcript:

Dynamic web content HTTP and HTML: Berners-Lee’s Basics

Get the book now!

The Request/Response Procedure 1. You enter into your browser’s address bar. 2. Your browser looks up the IP address for server.com. 3. Your browser issues a request for the home page at server.com. 4. The request crosses the Internet and arrives at the server.com web server. 5. The web server, having received the request, looks for the web page on its hard disk. 6. The web page is retrieved by the server and returned to the browser. 7. Your browser displays the web page.

The basic client/server request/response sequence

For dynamic web pages, the procedure is a little more involved 1. You enter into your browser’s address bar. 2. Your browser looks up the IP address for server.com. 3. Your browser issues a request to that address for the web server’s home page. 4. The request crosses the Internet and arrives at the server.com web server. 5. The web server, having received the request, fetches the home page from its hard disk. 6. With the home page now in memory, the web server notices that it is a file incorporating PHP scripting and passes the page to the PHP interpreter.

For dynamic web pages, the procedure is a little more involved 7. The PHP interpreter executes the PHP code. 8. Some of the PHP contains MySQL statements, which the PHP interpreter now passes to the MySQL database engine. 9. The MySQL database returns the results of the statements back to the PHP interpreter. 10. The PHP interpreter returns the results of the executed PHP code, along with the results from the MySQL database, to the web server. 11. The web server returns the page to the requesting client, which displays it.

A dynamic client/server request/response sequence

The Benefits of PHP, MySQL, and JavaScript PHP’s simplicity and built-in links to the MySQL database program had earned it more than double the number of users. And JavaScript, which had become an essential part of the equation for dynamically manipulating CSS (Cascading Style Sheets) now took on the even more muscular task of handling the client side of the Ajax process

Using PHP When you give pages the.php extension, they have instant access to the scripting language <?php echo "Hello World. Today is ".date("l").". "; ?> How are you? The final output of the two parts looks like this: Hello World. Today is Wednesday. How are you?

Using MySQL Early days of the Web, many sites used “flat” text files to store data MySQL, being free to use and installed on vast numbers of Internet web servers Structured Query Language Inserting and Looking up data

Using MySQL MySQL query such as SELECT surname,firstname FROM users WHERE Using PHP, you can make all these calls directly to MySQL

Using JavaScript JavaScript, was created to enable scripting access to all the elements of an HTML document Combined with CSS, JavaScript is the power behind dynamic web pages that change in front of your eyes rather than when a new page is returned by the server document.write("Hello World. Today is " + Date() ); Hello World. Today is Sun Jan :14:00

The Apache Web Server PHP, MySQL, and JavaScript: the web server. Apache also supports a huge range of modules of its own Rewrite module, which enables the web server to handle a varying range of URL types and rewrite them to its own internal requirements, and the Proxy module, which you can use to serve up often-requested pages from a cache to ease the load on the server

About Open Source PHP, MySQL, and Apache are the three most commonly used All these programs are free to use PHP, MySQL, and JavaScript all work together to produce dynamic web content

Ajax Process 1. The server outputs the HTML to create the web form, which asks for the necessary details, such as username, first name, last name, and address. 2. At the same time, the server attaches some JavaScript to the HTML to monitor the username input box and check for two things: (a) whether some text has been typed into it, and (b) whether the input has been deselected because the user has clicked on another input box. 3. Once the text has been entered and the field deselected, in the background the JavaScript code passes the username that was typed in back to a PHP script on the web server and awaits a response. 4. The web server looks up the username and replies back to the JavaScript regarding whether that name has already been taken

Ajax Process 5. The JavaScript then places an indication next to the username input box to show whether the name is one available to the user—perhaps a green checkmark or a red cross graphic, along with some text. 6. If the username is not available and the user still submits the form, the JavaScript interrupts the submission and reemphasizes (perhaps with a larger graphic and/or an alert box) that the user needs to choose another username. 7. Optionally, an improved version of this process could even look at the username requested by the user and suggest an alternative that is currently available.