COMP2121 Internet Technology Richard Henson University of Worcester March 2011.

Slides:



Advertisements
Similar presentations
WEB AND WIRELESS AUTOMATION connecting people and processes InduSoft Web Solution Welcome.
Advertisements

COMP3121 E-Business Technologies Richard Henson University of Worcester October 2011.
1 Web Servers / Deployment Alastair Dawes Original by Bhupinder Reehal.
Web Application Architecture Bird Book pp Client Server Model.
 2003 Prentice Hall, Inc. All rights reserved. Chapter 21 – Web Servers (IIS and Apache) Outline 21.1 Introduction 21.2 HTTP Request Types 21.3 System.
Copyright 2004 Monash University IMS5401 Web-based Systems Development Topic 2: Elements of the Web (g) Interactivity.
Server-Side vs. Client-Side Scripting Languages
Web Server Administration
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.
Kashif Jalal CA-240 (072) Web Development Using ASP.NET CA – 240 Kashif Jalal Welcome to week – 2 of…
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.
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)
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.
How Clients and Servers Work Together. Objectives Learn about the interaction of clients and servers Explore the features and functions of Web servers.
Mgt 240 Lecture Website Construction: Software and Language Alternatives March 29, 2005.
COMPUTER TERMS PART 1. COOKIE A cookie is a small amount of data generated by a website and saved by your web browser. Its purpose is to remember information.
ECA 228 Internet/Intranet Design I Intro to the Web.
Part or all of this lesson was adapted from the University of Washington’s “Web Design & Development I” Course materials.
Web Programming Language Dr. Ken Cosh Week 1 (Introduction)
Web Design Basic Concepts.
1 Web Database Processing. Web Database Applications Static Report Publishing a report is prepared from a database application and exported to HTML DB.
INTRODUCTION TO WEB DATABASE PROGRAMMING
Architecture Of ASP.NET. What is ASP?  Server-side scripting technology.  Files containing HTML and scripting code.  Access via HTTP requests.  Scripting.
A Back-Stage Pass: What Every Hacker Wants Presented by: Art Jones.
Introduction to ASP.NET. Prehistory of ASP.NET Original Internet – text based WWW – static graphical content  HTML (client-side) Need for interactive.
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.
Dr. Azeddine Chikh IS444: Modern tools for applications development.
Chapter 1: Introduction to Web
1 Web Server Administration Chapter 1 The Basics of Server and Web Server Administration.
Introduction to Internet Programming (Web Based Application)
11/16/2012ISC329 Isabelle Bichindaritz1 Web Database Application Development.
Chapter 1: The Internet and the WWW CIS 275—Web Application Development for Business I.
Chapter 4 Networking and the Internet. © 2005 Pearson Addison-Wesley. All rights reserved 4-2 Chapter 4: Networking and the Internet 4.1 Network Fundamentals.
HTML. Principle of Programming  Interface with PC 2 English Japanese Chinese Machine Code Compiler / Interpreter C++ Perl Assembler Machine Code.
COMP3121 E-Commerce Technologies Richard Henson University of Worcester November 2011.
MySQL and PHP Internet and WWW. Computer Basics A Single Computer.
COMP2113 E-Commerce Richard Henson University of Worcester April 2008.
Web Pages with Features. Features on Web Pages Interactive Pages –Shows current date, get server’s IP, interactive quizzes Processing Forms –Serach a.
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.
1 MSCS 237 Overview of web technologies (A specific type of distributed systems)
Active Server Pages (ASP), also known as Classic ASP or ASP Classic, was Microsoft's first server-side script engine for dynamically generated web pages.
INTRODUCTION TO WEB APPLICATION Chapter 1. In this chapter, you will learn about:  The evolution of the Internet  The beginning of the World Wide Web,
COMP3121 E-Business Technologies Richard Henson University of Worcester October 2010.
COMP3241 E-Business Technologies Richard Henson University of Worcester October 2012.
Web Pages with Features. Features on Web Pages Interactive Pages –Shows current date, get server’s IP, interactive quizzes Processing Forms –Serach a.
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.
Introduction and Principles Web Server Scripting.
ASP-2-1 SERVER AND CLIENT SIDE SCRITPING Colorado Technical University IT420 Tim Peterson.
JavaScript and Ajax (Internet Background) Week 1 Web site:
(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.
COMP1321 Digital Infrastructure Richard Henson March 2016.
6/28/ A global mesh of interconnected networks (internetworks) meets these human communication needs. Some of these interconnected networks are.
COMP3121 E-Commerce Technologies Richard Henson University of Worcester December 2009.
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
Tonga Institute of Higher Education IT 141: Information Systems
Introduction and Principles
Warm Handshake with Websites, Servers and Web Servers:
PHP / MySQL Introduction
Web Development Using ASP .NET
Tonga Institute of Higher Education IT 141: Information Systems
Web Page Concept and Design :
Web Servers / Deployment
Tonga Institute of Higher Education IT 141: Information Systems
Web Application Development Using PHP
Presentation transcript:

COMP2121 Internet Technology Richard Henson University of Worcester March 2011

Week 8 – Introduction to Server-Scripting n Objectives of Session  Explain the limitations of client- scripting  Analyse a network infrastructure and server platform to assess possibilities for using server scripting  Implement server scripting across an Intranet and through the Internet

Client-Server Systems n Server end:   access control to the network and its resources controlled by logon service   access to resources depends on user rights – assessed by logon data n Client-end:   user who wishes to access network resources server client

Requests and responses Client requests information Server processes the request, sends a response back to the client

Bandwidth and Client/Server processes n Messages transferred between client and server via network

Bandwidth and Client/Server processes n Data transfer: the faster the better…  most effective on LANs - nowadays 1000 Mbits/sec or more  between connected Internet computers bandwidth needs to be as high as possible - 2 Mbits/sec upwards n Slow connections…  data takes longer to get through  so longer time to get a response back  server could even “time out”

More about HTTP and Client- Server Computing n Client and server systems work right up to the application layer n To allow client-server interaction on the web, Tim Berners-Lee designed HTTP to integrate well with his basic web page formatting language - HTML  HTML language GET command instructs the client process to get data for the server  HTML POST command sends client data either using an protocol or using HTTP

Web Dynamic Client-Server Model I n a typical web- based client-server application: 1.The HTML form displayed on a web browser at the client end collects data 2.Using HTTP the form data is sent to a web server

Web Dynamic Client-Server Model  The web server processes the data according to instructions on a specified server script  Using HTTP, the results of processing generated as specified by the script are sent back to the client  The web browser on the client machine displays the results on a web page in a specified position

Web Dynamic Client-Server model n All this gets even more complex when a database, and database programming, are also involved at the server end…

Server-scripting and dynamic pages on The Web n The following apply to ALL types of scripting used on the web…  scripts need to use real programming code »note: HTML is a FORMATTING language, NOT a programming language  both client and server ends have programming code: »client end…embedded within a HTML page »server end… could be embedded or separate

Languages used for Server Scripting n Much has been tried since w3c launched HTML as an interactive language in the early 1990s…  use of an existing language in a completely separate file, which is already compiled and ready to go: »the original approach:.cgi »any language could in theory be used »in practice “C” was usually favoured  use of an existing language embedded in a HTML file »The Microsoft.asp approach, using embedded VB source code »The Sun.jsp approach, using embedded Java (Script) source  Invention of new scripting languages that are “HTML-like” and easily embed with HTML »Cold Fusion.cf »Preprocessor Hypertext processing.php

Microsoft’s first attempt at server scripting… n In 1996, Microsoft introduced active server pages (asp)  hugely successful (VB very popular…)  soon became more popular than.cgi n However, in spite of the great success of asp, big problems were emerging…  by 2000, hackers were attacking Microsoft servers and finding many security holes in IIS »Microsoft only coped by offering hotfixes  further problem: use of VB source code »if server not secure, code could be copied or compromised »Scripts could not be truly “object oriented”

Alternative Scripting Lanuguages using the embedded approach n JSP n PHP n PERL n Cold Fusion

JSPs (Java Script Pages) n n Produced by Sun Microsystems   extension of the Java TM Servlet technologyJava TM Servlet technology n n According to Sun, Servlets:   “fit seamlessly into a Web server framework and can be used to extend the capabilities of a Web server with minimal overhead, maintenance, and support.” » »platform-independent » »100% pure Java » »enhanced performance » »separation of logic from display » »ease of administration » »extensibility into the enterprise

PERL n Invented by Larry Wall in 1987 n Became popular as a web programming language in the late 1990s n Features of C but an interpreted language (like Java) n Not for programming novices…

Evolution into PHP Evolution into PHP (Hypertext Pre-processor) Started as just a collection of PERL scripts in 1995 Started as just a collection of “ free” PERL scripts in 1995  became popular as a rival to the asp approach for programming code embedded in HTML  then became very popular as Microsoft wrestled with asp -> asp.net n Open source and integrates well with open source databases  e.g. MySQL

PHP scripts n n Originally designed for Linux-based systems   executed on a type of web server called Apache n n Can now run happily on IIS   now getting very popular with non-Linux platforms n n Big improvements in performance with PHP v4 n n XML functionality with v5 (released 2005) n n Can download the environment directly from the PHP website:     XAMPP provides MySQL and Apache webserver environment

Cold Fusion n n Originally produced by Altair with its own scripting language (CFML) for the Microsoft platform   arguably easier to use than asp n n Purchased by Macromedia in 2003 (Dreamweaver, Flash, Director, etc.)   Dreamweaver has good support for Cold Fusion scripting n n Now also available for the Java environment n n Macromedia itself now part of Adobe

ASP becomes ASP.NET n Microsoft’s new approach to server scripting for the new millennium…  building on asp principles  new system that used “intermediate language”, rather than source code on the server  much more difficult to hack n Problem was… they had to scrap the.asp environment, and adopt a new architecture…  known as the.net framework  as many developers were accustomed to.asp this took awhile to catch on!  many people still confuse asp and asp.net…

Evolution of.net framework (2001) n Version 1.1  intermediate language  run-time environment for scripts »compiled code can’t easily be hacked  Programming Code can be separated from HTML; »as with cgi… »but without degradation in performance  Web controls introduced by drag-and-drop for ease of development  XML can replace HTML code…

Evolution of.net framework (2005) n Version 2.0  more and better controls  some Integration with Active Directory  Visual Web Developer 2005 introduced »based on Visual Studio n user friendly development environment »easy use of master pages and CSS »simulated web server for ease of testing

Evolution of.net framework (2008, 2010) n Version 3.5  further enhancement to controls  greater integration with Active Directory  Visual Web Developer 2008 provided more controls, more wizards, and better formatting tools n Version 4.0  as above. Generally regarded as easier to use than VWD 2008

PHPs & asp.net today n n PHPs attractive for serious programmers who dislike the Microsoft approach…   integration of cut-and-paste code still needs an environment like Dreamweaver n n Industry view (post-millenium)   Unix-based Servers running PHPs considered to be more secure against hackers than Windows 2000/IIS running asp   asp.net running on Windows 2003/IIS v6/7 later accepted as being a very stable platform n n Both widely in use today…

Platforms for Development n n Dreamweaver excellent for asp,.net. php & ColdFusion until Creative Studio n n From CS1 onwards (2005ish):   no support for.net development   solid support for php & Cold Fusion n n Visual Web Developer 2005, 2008, 2010   gradually took away Dreamweaver customers using asp.net

When to use Server Scripting (1) n Whenever programming logic is required that needs to be shared via Internet browsers! n Good for security  if web server properly configured… n And accountability  clients can be forced to log on

When to use Server Scripting (2) n When client end lacks storage & processing power  fits well with the thin client model for web & network computing  very popular for massively multiplayer games n Client just sends the requests and asks the questions  server does the processing and provides the web pages with answers/responses to requests

When to use Server Scripting (3) n Whenever centralised data storage & processing is needed to support activities of a website  essential for security of sensitive data  waste of space and resources to store & process databases locally

(4) Securing of Sensitive Data between Client and Server n Extended Internet infrastructure designed around the webserver model  organisation can get an authentication certificate (SSL certificate), and make it available through their webserver »client can view server certificate  Client can access sensitive data at server end by authenticating themselves (log in)  data encrypted and sent using https protocol

Platforms for developing a website running server-scripts n Computer capable of supporting Windows XP/2003/Vista/7 or an equivalent Unix-based operating system n TCP/IP protocol stack running on server n Web Server software such as:  Internet Information Server  Apache n Broadband connection to the Internet

Typical Infrastructure for putting Server Scripting online n Make sure the internal “client-server” computer network is secure n EITHER use the firewall/proxy server as a router to separate the internal (local) network from the External (i.e. Internet) network nOR, if OSI level 3-4 protocol conversion needed, use a gateway  converts data into appropriate protocol and diverts it between the Internet and the local network  can be used to link networks running different protocols

Putting the Secured network on-line n A digital connection with plenty of bandwidth is needed between the router/gateway and a computer connected to the Internet n Regular monitoring of the network is essential to ensure that unauthorised users are not trying to gain access

Web Hosting and ISPs (Internet Service Providers) n Only the largest corporate enterprises are likely to be part of the Internet n Most businesses need to find a partner who will provide a link between the connection medium and the Internet that meets their needs  Many Internet service providers available  The problem is usually “which to choose”, rather than finding a partner…

Web Hosting n Two possibilities:  ISP provides hosting and web space, organisation manages website  ISP provides hosting AND manages website n ISP will also provide:  the all important IP address that will allow a presence on the Internet  the domain name that will allow other Internet users to find the website

Criteria for choosing a web host (apart from cost!) n Amount of web space? n Bandwidth availability? n Hardware & OS? n Uploading techniques? n Protocols supported? n URL available? n type of server scripts supported? n Site management tools? n Databases supported?

Exercise for Next Week n Search Google for web hosts  How many available?  How could you choose? n Use the following URL to compare web hosts and their offerings: 