Introduction and Principles

Slides:



Advertisements
Similar presentations
Overview Environment for Internet database connectivity
Advertisements

Lecture 11 Server Side Interaction
DT211/3 Internet Application Development Active Server Pages & IIS Web server.
Server-Side vs. Client-Side Scripting Languages
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.
15 Chapter 15 Web Database Development Database Systems: Design, Implementation, and Management, Fifth Edition, Rob and Coronel.
B.Sc. Multimedia ComputingMedia Technologies Database Technologies.
Introduction to Web Application Architectures Web Application Architectures 18 th March 2005 Bogdan L. Vrusias
Week 2 IBS 685. Static Page Architecture The user requests the page by typing a URL in a browser The Browser requests the page from the Web Server The.
Introduction to Web Interface Technology (CSE2030)
Introduction to Web Based Application. Web-based application TCP/IP (HTTP) protocol Using WWW technology & software Distributed environment.
1 CS6320 – Why Servlets? L. Grewe 2 What is a Servlet? Servlets are Java programs that can be run dynamically from a Web Server Servlets are Java programs.
Website Development with PHP and MySQL Introduction.
Russell Taylor Lecturer in Computing & Business Studies.
Computer Science 101 Web Access to Databases Overview of Web Access to Databases.
Mgt 240 Lecture Website Construction: Software and Language Alternatives March 29, 2005.
4.01B Authoring Languages and Web Authoring Software 4.01 Examine webpage development and design.
Dynamic Web site With PHP and MySQL. MySQL The combination of MySQL database and PHP scripting language is optimum for building dynamic websites. MySQL.
2440: 141 Web Site Administration Web Server-Side Programming Professor: Enoch E. Damson.
1 CS428 Web Engineering Lecture 18 Introduction (PHP - I)
ECA 228 Internet/Intranet Design I Intro to the Web.
Web Programming Language Dr. Ken Cosh Week 1 (Introduction)
DAT602 Database Application Development Lecture 15 Java Server Pages Part 1.
ITM352 PHP and Dynamic Web Pages: Server Side Processing.
INTRODUCTION TO WEB DATABASE PROGRAMMING
Server- Side technologies Client-side vs. Server-side scripts PHP basic ASP.NET basic ColdFusion.
1 CS 3870/CS 5870 Static and Dynamic Web Pages ASP.NET and IIS.
FALL 2005CSI 4118 – UNIVERSITY OF OTTAWA1 Part 4 Web technologies: HTTP, CGI, PHP,Java applets)
Architecture Of ASP.NET. What is ASP?  Server-side scripting technology.  Files containing HTML and scripting code.  Access via HTTP requests.  Scripting.
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.
About Dynamic Sites (Front End / Back End Implementations) by Janssen & Associates Affordable Website Solutions for Individuals and Small Businesses.
Tutorial 10 Adding Spry Elements and Database Functionality Dreamweaver CS3 Tutorial 101.
Introduction to Internet Programming (Web Based Application)
NASRULLAH KHAN.  Lecturer : Nasrullah   Website :
Website Design Lecture 1. Outline Introduction to the module Outline of the Assessment Schedule Lecture Static XHTML, client side and server side Why.
1 © Netskills Quality Internet Training, University of Newcastle HTML Forms © Netskills, Quality Internet Training, University of Newcastle Netskills is.
1 Session 1: Introduction to PHP & MySQL iNET Academy Open Source Web Development.
ASP (Active Server Pages) by Bülent & Resul. Presentation Outline Introduction What is an ASP file? How does ASP work? What can ASP do? Differences Between.
WHAT IS SERVER SIDE SCRIPTING? Server-side scripting is a web server technology in which a user's request is verified by running a script directly on the.
Scripting Languages Client Side and Server Side. Examples of client side/server side Examples of client-side side include: JavaScript Jquery (uses a JavaScript.
Introduction and Principles Web Server Scripting.
NASRULLAH KHAN.  Lecturer : Nasrullah   Website :
 Web pages originally static  Page is delivered exactly as stored on server  Same information displayed for all users, from all contexts  Dynamic.
Unit 1 – Web Concepts Instructor: Brent Presley.
8 th Semester, Batch 2009 Department Of Computer Science SSUET.
(ITI310) By Eng. BASSEM ALSAID SESSIONS 10: Internet Information Services (IIS)
Web Page Designing With Dreamweaver MX\Session 1\1 of 9 Session 1 Introduction to PHP Hypertext Preprocessor - PHP.
Introduction to ASP.NET development. Background ASP released in 1996 ASP supported for a minimum 10 years from Windows 8 release ASP.Net 1.0 released.
1 LM 6 Database Applications Dr. Lei Li. Learning Objectives Explain three components of a client-server system Describe differences between a 2-tiered.
A S P. Outline  The introduction of ASP  Why we choose ASP  How ASP works  Basic syntax rule of ASP  ASP’S object model  Limitations of ASP  Summary.
G046 – Lecture 2A Recognising Web-Technologies Mr C Johnston ICT Teacher
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.
PHP Basics and Syntax Lesson 3 ITBS2203 E-Commerce for IT.
CGS 3066: Web Programming and Design Spring 2017
Web Programming Language
Introduction to Dynamic Web Programming
ITM352 PHP and Dynamic Web Pages: Server Side Processing 1.
Web Concepts Lesson 2 ITBS2203 E-Commerce for IT.
WWW and HTTP King Fahd University of Petroleum & Minerals
Active Server Pages Computer Science 40S.
Introduction to PHP FdSc Module 109 Server side scripting and
PHP / MySQL Introduction
Database Driven Websites
Chapter 27 WWW and HTTP.
Introduction of Week 11 Return assignment 9-1 Collect assignment 10-1
IntroductionToPHP Static vs. Dynamic websites
An Introduction to JavaScript
PHP an introduction.
Web Application Development Using PHP
CGS 3066: Web Programming and Design Fall 2019
Presentation transcript:

Introduction and Principles Unit 27 Web Server Scripting Extended Diploma in ICT

Outcomes Understand the principles of web server scripting Be able to use web server scripting Understand the issues affecting web server scripting

Assignments 4 P1, M1 D1: Theory – principles P2, P3, P4, M2, M3: Practical - code snippets P5, M4, D2: Practical - make an application P6, D3: Theory – issues and security

Delivery Before Easter After Easter Theory on principles – assignment 1 The development environment Simple exercises After Easter Specific coding tasks – Assignment 2 Build a car hire application – Assignment 3 Theory on issues and security – Assignment 4

What is server side scripting? Server-side scripting is a web server technology in which a user's request is verified by running a script directly on the web server to generate dynamic web pages. (http://en.wikipedia.org/wiki/Server-side_scripting) It is used to create dynamic web pages Unlike client side scripting, the code is secure as it cannot be viewed on the client

Static web pages The server contain .HTML files These are served to the client browser on request The local browser may have some interaction via client-side scripting (JavaScript) The HTML pages are fixed and cannot be altered to match individuals requests

Dynamic model HTML pages are generated when they are requested The basic page is done in a scripting language and uses HTML and CSS to determine static content and appearance The variable data is generated by scripts (an interpreted program) running on the web server

List generated by scripts An example Clicking here will run a script to add the product to a basket and update the basket status on this page Clicking here will run a script using the new parameters to generate a new list List generated by scripts

Other uses Updating databases Interacting with forums Gathering user statistics Managing profiles Blogging Sharing (upload to Web 2.0 applications)

How does it work?

Activity There are a variety of web server scripting languages Find 5 scripting languages and create a table which shows: Open or proprietary Free or paid for Main features Claimed advantages You must include PHP

ASP Active Server Pages (ASP) a server-side scripting environment from Microsoft Uses a file extension of .asp. Scripts are usually written in VBScript ASP will normally run only on Microsoft servers

ASP.NET The successor to Microsoft's ASP Allows programmers to create web applications using any scripting or programming language supported by the .NET Framework. The main building blocks are pages known as web forms, which contain definitions for server-side Web Controls and User Controls, Web forms have the file extension .aspx

ColdFusion Markup Language (CFML) A scripting language originally introduced by Adobe Systems in 1995 Enables web developers to embed database commands and other server-side scripting elements within standard HTML or XHTML Pages in a ColdFusion web application are pre-processed by the ColdFusion Application Server when requested by a client browser

Perl A high-level, interpreted programming language a procedural programming language loosely based on C Used for the creation of web applications, especially those where database access is required. Perl is free software

JavaServer Pages (JSP) A Java technology similar to ASP Used to create dynamically generated web pages by embedding Java programming code in HTML or XHTML documents A JavaServerPage is compiled into a Java servlet by an application server, rather than being interpreted (a servlet is a Java program that executes on the server to create dynamic web pages).

PHP a widely-used scripting language PHP is free software released PHP code can be embedded into HTML or XHTML documents It is executed on the server to generate dynamic web content. PHP is frequently used together with MySQL, and is one of the key technologies in the

What we will use for this unit Web server scripts written in PHP Database commands written in SQL (structured query language) Client scripts written in JavaScript Apache Web server MySQL database managed with PHPMyAdmin PHP interpreter add on to Apache

College set up Each student# login has For home you can use XAMPP A folder for storing the web site MySQL PHP FTP access Apache For home you can use XAMPP

Tools Your choice of browser Contextual editors FTP Notepad++ (Windows) GEDIT (Linux) FTP Filezilla Windows File Explorer

A simple PHP script <?PHP is the opening tag <html> <head> <title>Today’s Date</title> <meta http-equiv="content-type“ content="text/html; charset=utf-8"/> </head> <body> <p>Today’s date (according to this web server) is <?php echo date('l, F dS Y.'); ?> </p> </body> </html> <?PHP is the opening tag (?> is the closing tag) Using the PHP date function to get the date set on the server and echo it to the screen

Practicalities Use an FTP client (I use Filezilla) to create a subdirectory on your student account student#.computing.hct.ac.uk/Unit27 Use a contextual editor (Notepad++ or gedit to create the file we just used and save it with a file type of .php (I called it Unit27PHPTest.php) in the subdirectory Access it using your browser http://studentnn.computing.hct.ac.uk/Unit27/Unit27PHPTest.php Make sure it works

Results Browser displays: Source is: <body> <p>Today’s date (according to this web server) is Tuesday, March 27th 2012. </p> </body>

Assignment 1 criteria P1 Explain the principles of web server scripting M1 Compare server-side and client-side scripting D1 Evaluate the combined use of client and web server scripting

Client side and server side Reduces web traffic as processing done on client Good for Form validation User aids (drop downs, hover etc) Local navigation Server side Can use centralised server resources eg databases No client plug-ins required, runs in any browser No load on client, can use powerful server hardware Applications do not need distributing

Combined use Build efficient applications Choose to do the processing in the most appropriate location Choose where to keep up to date multi use data Choose how to optimise the user experience: Performance Appearance Function

Summary: web server scripting Advantages Disadvantages Interpreted, low processing overhead Interpreter is integrated into web server, so it is fast Secure, code runs on server Content based on live data Can use basic, eg phone, browsers as processing is server side Debugging tools can be scarce Can be more difficult to develop Requires a running server to test Has no direct control over the user interface