Section 6.3 Server-side Scripting

Slides:



Advertisements
Similar presentations
DT228/3 Web Development WWW and Client server model.
Advertisements

DT211/3 Internet Application Development Active Server Pages & IIS Web server.
ASP Tutorial. What is ASP? ASP (Active Server Pages) is a Microsoft technology that enables you to make dynamic and interactive web pages. –ASP usually.
Session 6 Server-side programming - ASP. An ASP page is an HTML page interspersed with server-side code. The.ASP extension instead of.HTM denotes server-side.
INTERNET DATABASE Chapter 9. u Basics of Internet, Web, HTTP, HTML, URLs. u Advantages and disadvantages of Web as a database platform. u Approaches for.
Introduction to Web Database Processing
INTERNET DATABASE. Internet and E-commerce Internet – a worldwide collection of interconnected computer network Internet – a worldwide collection of interconnected.
Introduction to Web Interface Technology (CSE2030)
Multiple Tiers in Action
Introduction to Web Based Application. Web-based application TCP/IP (HTTP) protocol Using WWW technology & software Distributed environment.
Active Server Pages Chapter 1. Introduction Understand how browsers and servers interacted when the Web was young Understand what early Internet and intranet.
The World Wide Web and the Internet Dr Jim Briggs 1WUCM1.
Introduction to Web Interface Technology (CSE2030)
Computer Science 101 Web Access to Databases Overview of Web Access to Databases.
INTRODUCTION TO WEB DATABASE PROGRAMMING
Databases and the Internet. Lecture Objectives Databases and the Internet Characteristics and Benefits of Internet Server-Side vs. Client-Side Special.
Chapter 1: Introduction to Web
Basics of Web Databases With the advent of Web database technology, Web pages are no longer static, but dynamic with connection to a back-end database.
Introduction to Internet Programming (Web Based Application)
Internet, intranet, and multimedia database processing l Database processing across local and wide area networks l Alternative architectures for distributing.
Chapter 17 - Deploying Java Applications on the Web1 Chapter 17 Deploying Java Applications on the Web.
Tutorial 10 by Sam ine1020 Introduction to Internet Engineering 1 Database & Server-side Scripting Tutorial 10.
ASP Introduction Y.-H. Chen International College Ming-Chuan University Fall, 2004.
Kingdom of Saudi Arabia Ministry of Higher Education Al-Imam Muhammad Ibn Saud Islamic University College of Computer and Information Sciences Chapter.
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.
_______________________________________________________________________________________________________________ E-Commerce: Fundamentals and Applications1.
Introduction to ASP.NET1. 2 Web applications in general Web applications are divided into two parts –The server part –The client part The server part.
1 © Netskills Quality Internet Training, University of Newcastle HTML Forms © Netskills, Quality Internet Training, University of Newcastle Netskills is.
1 MSCS 237 Overview of web technologies (A specific type of distributed systems)
1 WWW. 2 World Wide Web Major application protocol used on the Internet Simple interface Two concepts –Point –Click.
The Module Road Map Assignment 1 Road Map We will look at… Internet / World Wide Web Aspects of their operation The role of clients and servers ASPX.
IS-907 Java EE World Wide Web - Overview. World Wide Web - History Tim Berners-Lee, CERN, 1990 Enable researchers to share information: Remote Access.
 Previous lessons have focused on client-side scripts  Programs embedded in the page’s HTML code  Can also execute scripts on the server  Server-side.
Module: Software Engineering of Web Applications Chapter 2: Technologies 1.
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. 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.
 Web pages originally static  Page is delivered exactly as stored on server  Same information displayed for all users, from all contexts  Dynamic.
ASP-2-1 SERVER AND CLIENT SIDE SCRITPING Colorado Technical University IT420 Tim Peterson.
JavaScript and Ajax (Internet Background) Week 1 Web site:
Display Page (HTML/CSS)
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.
ASP – Web Programming Class  Ravi Anand. ASP – Active Server Pages What is ASP? - Microsoft Technology - Can Run using IIS/PWS/Others - Helps us create.
National College of Science & Information Technology.
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.
CGS 3066: Web Programming and Design Spring 2017
Internet/Web Databases
Introduction to Internet Programming (Web Based Application)
Web Programming Language
Distributed Control and Measurement via the Internet
Tonga Institute of Higher Education IT 141: Information Systems
WWW and HTTP King Fahd University of Petroleum & Minerals
Database Applications Using Internet Technology
CISC103 Web Development Basics: Web site:
JavaScript and Ajax (Internet Background)
Active Server Pages Computer Science 40S.
CNIT 131 Internet Basics & Beginning HTML
Introduction Web Environments
PHP / MySQL Introduction
Tutorial (4): HTTP Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
Database Driven Websites
Chapter 27 WWW and HTTP.
Tonga Institute of Higher Education IT 141: Information Systems
Introduction to Servlets
PHP and Forms.
Tonga Institute of Higher Education IT 141: Information Systems
Lecture 5: Functions and Parameters
PHP Forms and Databases.
Client-Server Model: Requesting a Web Page
Web Application Development Using PHP
Presentation transcript:

Section 6.3 Server-side Scripting

HTTP Hypertext transfer protocol Method of transferring pages from web server to the browser Client server model using TCP/IP protocol HTTP client i.e. web browser HTTP server i.e. web server Web browser sends a request message Web server listens on port 80 and responds with a response message https://www.nwolb.com/secure/default.asp Natwest’s online banking URL ‘s’ at the end of the https stands for secure 128-bit encryption through a secure port to Natwest Bank’s computer

Web server extension A program that is interpreted by an interpreter running on the web server This extends the functionality of the web server Allows the web server to generate content at the time of the HTTP request e.g. actual time Generates the web page to be returned to the web browser Accesses the request object and processes its contents before formulating a response, which is placed in the response object in the gateway. The web server accesses the response object to pass its contents back to the web browser

Common Gateway Interface (CGI) A gateway between a web server and a web server extension CGI specification tells the server: How to send information to a web server extension What to do after receiving information from a web server extension Consists of two objects, the Request object and the Response object

Request Message Web browser sends a request message to web server Two ways to pass data to web server Query string/Get method Get /webpage.asp?myname=Fred&age=6 Post method Post /webpage.asp Data is passed in the message body

Client-side scripting All the code is already on the users browser and the page alters based on the users input Language is usually JavaScript E.g. A JavaScript drop down menu. The JavasScript alters how the menu is displayed but all the code is run locally while it is doing it.

Server-side scripting This is when the web browser makes a request back to the server and the script creates the dynamic page Language is usually ASP or PHP Can access databases and return results to the browser e.g. user clicks on the products link. The server then runs the ASP code to create a page by finding all the products in the data base. The page is created and sent back to the users browser for viewing.

Web browser retrieving data from a remote database

Writing server-side scripts Several scripting languages e.g. VBScript, PHP and Perl. Scripting languages are either interpreted or compiled (executables) ISPs prefer interpreted scripting languages Scripts can be read Less likely to bring down the server Compiled scripts may contain malicious code which could harm the server and computers running web browsers.

Active Server Pages Covered by Bernhard Hofmann Also known as ASP Used to create dynamic web pages Uses VBScript language Interpreted by Microsoft’s Internet Information Server (IIS)

Accessing data from a DBMS using server-side scripts Covered by Bernhard Hofmann Web server extension uses database connection components to connect to a DBMS 5 steps to connect to a DB Create a connection Select a DB Perform DB query Use the returned data Close the connection

Class work Install IIS and test server side scripts Complete the server-side scripting worksheet. The ASP scripts can be tested on your IIS. Try a few of the ASP tutorials at http://www.w3schools.com/asp/default.asp

Homework January 2003 CPT 5 Q7 part b only June 2011 COMP3 Q7 parts d and e only Hand-in by Friday 24th February 2012