2440: 141 Web Site Administration Web Server-Side Programming Professor: Enoch E. Damson.

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

Copyright © 2004 ProsoftTraining, All Rights Reserved. Lesson 11: Advanced Web Technologies.
Lecture 11 Server Side Interaction
JavaScript FaaDoOEngineers.com FaaDoOEngineers.com.
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.
1 Database Driven Web Application Clients Application Servers including web servers Database Server Traditional client-server (2-tier architecture): client:
Languages for Dynamic Web Documents
Server-Side vs. Client-Side Scripting Languages
1 Chapter 12 Working With Access 2000 on the Internet.
Chapter Concepts Review Markup Languages
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.
B.Sc. Multimedia ComputingMedia Technologies Database Technologies.
28/1/2001 Seminar in Databases in the Internet Environment Introduction to J ava S erver P ages technology by Naomi Chen.
Introduction to Web Application Architectures Web Application Architectures 18 th March 2005 Bogdan L. Vrusias
Outline IS400: Development of Business Applications on the Internet Fall 2004 Instructor: Dr. Boris Jukic Server Side Web Technologies: Part 2.
Introduction to Web Interface Technology (CSE2030)
Introduction to Web Interface Technology (CSE2030)
1 Java Server Pages Can web pages be created specially for each user? What part does Java play?
PHP Scripting Language. Introduction “PHP” is an acronym for “PHP: Hypertext Preprocessor.” It is an interpreted, server-side scripting language. Originally.
Web Development & Design Foundations with XHTML Chapter 9 Key Concepts.
Sys Prog & Scripting - HW Univ1 Systems Programming & Scripting Lecture 15: PHP Introduction.
1 Web Developer & Design Foundations with XHTML Chapter 6 Key Concepts.
CSC 318 WEB APPLICATION DEVELOPMENT.  Introduction to Server Scripting language  Client VS Server  Introduction to PHP  PHP Files and Syntax  Function.
INTRODUCTION TO WEB DATABASE PROGRAMMING
Server- Side technologies Client-side vs. Server-side scripts PHP basic ASP.NET basic ColdFusion.
FALL 2005CSI 4118 – UNIVERSITY OF OTTAWA1 Part 4 Web technologies: HTTP, CGI, PHP,Java applets)
_______________________________________________________________________________________________________________ E-Commerce: Fundamentals and Applications1.
Architecture Of ASP.NET. What is ASP?  Server-side scripting technology.  Files containing HTML and scripting code.  Access via HTTP requests.  Scripting.
Dynamic Web Sites Chris North cs3724: HCI. Presentations matt ketner, sam altman, mike gordon Vote: UI Hall of Fame/Shame?
Introduction to ASP.NET. Prehistory of ASP.NET Original Internet – text based WWW – static graphical content  HTML (client-side) Need for interactive.
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.
CS346 - Javascript 1, 21 Module 1 Introduction to JavaScript CS346.
Dr. Azeddine Chikh IS444: Modern tools for applications development.
CSE3310: Web training A JumpStart for Project.
Chapter 33 CGI Technology for Dynamic Web Documents There are two alternative forms of retrieving web documents. Instead of retrieving static HTML documents,
Server-side Scripting Powering the webs favourite services.
2440: 211 Interactive Web Programming Introduction to the Internet & the World Wide Web.
JSP Java Server Pages Softsmith Infotech.
Web Server Administration Chapter 7 Installing and Testing a Programming Environment.
Section 17.1 Add an audio file using HTML Create a form using HTML Add text boxes using HTML Add radio buttons and check boxes using HTML Add a pull-down.
HTML. Principle of Programming  Interface with PC 2 English Japanese Chinese Machine Code Compiler / Interpreter C++ Perl Assembler Machine Code.
Tutorial 7 Creating Forms. Objectives Session 7.1 – Create an HTML form – Insert fields for text – Add labels for form elements – Create radio buttons.
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 
Introduction to PHP Advanced Database System Lab no.1.
1 MSCS 237 Overview of web technologies (A specific type of distributed systems)
Web Server Administration Chapter 7 Installing and Testing a Programming Environment.
Copyright © 2002 ProsoftTraining. All rights reserved. JavaServer Pages.
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.
David Lawrence 7/8/091Intro. to PHP -- David Lawrence.
IS-907 Java EE World Wide Web - Overview. World Wide Web - History Tim Berners-Lee, CERN, 1990 Enable researchers to share information: Remote Access.
CITA 310 Section 7 Installing and Testing a Programming Environment (Textbook Chapter 7)
Web Design and Development. World Wide Web  World Wide Web (WWW or W3), collection of globally distributed text and multimedia documents and files 
 Web pages originally static  Page is delivered exactly as stored on server  Same information displayed for all users, from all contexts  Dynamic.
Database Connectivity and Server-Side Scripting Chapter 12.
1) PHP – Personal Home Page Scripting Language 2) JavaScript.
8 th Semester, Batch 2009 Department Of Computer Science SSUET.
1 PHP Intro PHP Introduction After this lecture, you should be able to: Know the fundamental concepts of Web Scripting Languages in general, PHP in particular.
Web Page Designing With Dreamweaver MX\Session 1\1 of 9 Session 1 Introduction to PHP Hypertext Preprocessor - PHP.
CSE3310: Web training A JumpStart for Project. Outline Introduction to Website development Web Development Languages How to build simple Pages in PHP.
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.
Java Server Pages Can web pages be created specially for each user?
Introduction to Dynamic Web Programming
Introduction and Principles
Section 17.1 Section 17.2 Add an audio file using HTML
PHP / MySQL Introduction
IntroductionToPHP Static vs. Dynamic websites
Web Application Development Using PHP
Presentation transcript:

2440: 141 Web Site Administration Web Server-Side Programming Professor: Enoch E. Damson

Programming Languages Programming languages are used to develop programs that help: Input data Processes data Store data Output data Web Server-Side Programming2

Programming Programming is accomplished in two ways: Sequentially Using variables and procedures/functions Object-Oriented Using classes and objects which have: Attributes (variables) Methods (functions/procedures) Web Server-Side Programming3

Programs Programs are written to perform specific tasks Programming is accomplished using major elements such as: Syntax and Expressions Comments Literal Values Data Types and Variables Input/Output Data Arithmetic Operations Logical Operations Selections/Decisions Repetitions/Looping Arrays Web Server-Side Programming4

Web Programming Languages Web pages that contain only HTML/XHTML statements are called static pages Web pages that contain programming statements are known as dynamic pages (allow the content to change) Web Server-Side Programming5

Web Programming Languages… Programming languages can be used to create: Dynamic webpages on client Web browsers Using client-side scripting languages such as JavaScript and VBScript Dynamic webpages that run on Web servers and update databases Using server-side scripting languages such as Java Server Pages (JSP), Active Server Pages (ASP), ASP,NET, PHP, Coldfusion, etc Using SQL on DBMSs such as Oracle, MySQL, SQL Server, DB2, etc Web Server-Side Programming6

Server-Side Programming Server-side programs provide dynamic content and allows interaction with Web users using: DHTML Active Server Pages (ASP) Servlets and Java Server Pages (JSP) PHP: Hypertext Preprocessor (PHP) Practical Extraction and Reporting Language (Perl) Databases Web Server-Side Programming7

Dynamic Documents Dynamic HTML (DHTML) is a term for a combination of client-side technologies that produce dynamic documents DHTML can be used to create simple animations, images, and text with resources such as: HTML/XHTML Style sheets (CSS) Client-side scripting (JavaScript or VBScript) Web Server-Side Programming8

Web Applications Web applications use a combination of the following HTML/XHTML Style sheets (CSS) Client-side scripting languages such as JavaScript or VBScript Server-side scripting languages Such as ASP, ASP.NET, PHP, JSP, etc Database Management Systems (DBMS) to create and manipulate databases Usually using the embedded Structured Query Language (SQL) especially in Relational Databases. Web Server-Side Programming9

HTML Form Page HTML Form Page Opening tag 2. Opening tag 3. Specifying the title of the page (HTML Form Page) with the two-sided tag 4. Closing tag 5. Opening tag 6. Opening tag specifying the recipient CGI file using the action attribute and the method of sending data (using the HTTP’s post) with the method attribute 7. Using the tag’s type attribute to specify the form component (text for textbox) being used to accept data, and the name attribute to uniquely identify the component 8. Using the tag’s type attribute to specify a submit button (submit) being used to send data, and the value attribute for the button’s caption 9. Closing tag 10. Closing tag 11. Closing tag Web Server-Side Programming10

DHTML Sample Code document.writeln("Hello World"); p {color: blue} DHTML Page Embedded style 13. Inline style Opening tag 2. Opening tag 3. Opening tag specifying the script language of choice (JavaScript) 4. Displays text (“Hello World”) on a browser 5. Closing tag 6. Opening tag specifying the style sheet type (css – cascading style sheet) 7. Specifying a value of blue as the text color for all paragraphs on the page – Embedded style 8. Closing tag 9. Specifying the title of the page (DHTML Page) with the two-sided tag 10. Closing tag 11. Opening tag 12. Displays a paragraph on the page 13. Displays a paragraph with an Inline style 14. Closing tag 15. Closing tag Web Server-Side Programming11

Active Server Pages (ASP) Microsoft’s server-side technology for creating dynamic Web pages Based on Microsoft’s Component Object Model (COM) and ActiveX Controls COM is a Microsoft standard that defines how software components from different vendors can work together ActiveX controls are components built using the COM specifications VBScript and JavaScript are the most popular ASP languages but any language (such as C++, Perl, Java) that supports COM can also be used Web Server-Side Programming12

ASP Page Specifies the ASP script language using directive 2. Opening tag 3. Displays text on a page using the = directive 4. Closing tag Web Server-Side Programming13

Servlets and Java Server Pages (JSP) Sun Microsystem’s alternative to Microsoft’s ASP Rely on Sun’s Java programming language Java – a portable object-oriented language Servlets – are server-side programs like CGI programs but run as part of the Web server instead of executing as separate processes (as CGI scripts do) JSP – provides the same benefits of servlets along with the benefits of SSI JavaBeans – a component model written in Java to allow developers write reusable components JSP’s solution to separate content from presentation Web Server-Side Programming14

JSP Page Opening tag 2. Displays text on a page using the = directive 3. Closing tag Web Server-Side Programming15

Perl CGI Script 1. #!/cgi-bin/perl 2. #hello.cgi – Sample perl script 3. print “Content-type: text/html\n\n”; 4. use CGI qw(:standard); 5. use strict; 6. my ($fname); 7. $fname = param(‘firstname’); 8. print “<HTML\n”; 9. print “ Perl CGI Script \n”; 10. print “ Hello $fname \n”; 11. print “ \n”; 1. Location of the Perl interpreter (required in UNIX; optional in Windows) 2. Comment (non-executable statement) 3. Sends an HTML document type (text/html) to the browser using the HTTP header line (Content-type) and creates a new line 4. Allows the script to parse data from the form when received 5. Prevents Perl from using undeclared variables 6. Declares a scalar variable (preceded by a $ sign) named fname 7. Assigns a form data to a variable 8. Sends the opening tag to the browser 9. Sends the two-sided and tags to the browser 10. Sends the two-sided and contents of the page to the browser 11. Sends the closing tag to the browser Web Server-Side Programming16

PHP: Hypertext Preprocessor (PHP) A simple open-source server-side programming language used for developing interactive Web documents Includes object-oriented programming (OOP) capabilities Web Server-Side Programming17

PHP Page Opening tag 2. Displays text on a browser 3. Closing tag Web Server-Side Programming18

Databases Databases are a collection of data and metadata (data about other data) about entities using a database management system (DBMS) DBMS – software used to create, construct and manipulate databases E.g. Oracle, Microsoft SQL Server, MySQL, etc Entities – any thing, place, event, etc that data is collected about Data is collected in the form of attributes to help make up records Attributes – description of an entity Records – collection of attributes Web Server-Side Programming19

DBMS Most DBMSs use a data definition language (DDL) and data manipulation language (DML) to help create and manipulate databases The most widely used DDL/DML for databases is the structured query language (SQL) – pronounced “sequel” Used by virtually all DBMSs Web Server-Side Programming20

SQL SQL is a language embedded in virtually all DBMSs to perform several tasks including: Creating the structure of database objects Using the create command Removing database objects Using the drop command Changing the structure of database objects Using the alter command Web Server-Side Programming21

SQL… Other SQL functionalities include: Adding records into database tables Using the insert command Removing records from database tables Using the delete command Changing records in database tables Using the update command Retrieve records from database tables Using the select command Web Server-Side Programming22

Web Servers and Server-Side Programming Language Choosing a programming language for server-side programming depends on the type of Web server to use and vice versa The two most popular Web servers allows you to choose their most friendliest programming language IIS is most friendly with ASP, ASP.NET Apache is most friendly with PHP, JSP, etc Web Server-Side Programming23