Unit 3: Server-side Scripting

Arya MirSoftware and s/w Development

May 15, 2012 (5 years and 4 months ago)

708 views

Lesson Objective z By the end of this lesson you will be able to: Differentiate between client-side and server-side scripting Describe server-side scripting languages, including: ASP, ColdFusion, PHP, JSP

1
Unit 3: Server-side
Scripting
Instructor: Angel Ellis
2
Lesson Objective

By the end of this lesson you will be able to:
 Differentiate between client-side and server-side
scripting
 Describe server-side scripting languages,
including: ASP, ColdFusion, PHP, JSP
3
Client-Side vs. Server-Side

To make a site dynamic you will use some
type of script; which side of the connection
(server or client) the script is best suited to will
depend on it's purpose

Server side approaches perform all the
processing at the server while the client side
approach sends the commands to the client
browser for it to do the processing
4
Client Side

Client side scripts are used for visual effects
as well as functional reasons

Browser dependent

Use client side scripts:
 Complimentary form pre-processing (should not be relied
upon!)
 To get data about the user's screen or browser
 Online games
 Customizing the display (without reloading the page)
2
5
Server Side

Browser Independent

More flexible and accessible

Variety of languages

Ideas for when to use server side scripts:
 Password protection
 Browser sniffing/customization
 Form processing
 Building and displaying pages created from a database
6
Dynamic Server Pages

Dynamic Server Pages ≠ Server Side
Scripting

Dynamic Server Pages utilize server side
scripting technologies
7
ASP

ASP (Active Server Pages) is a Microsoft-
developed HTML-embedded, server-side
scripting languages used to create web pages.

Designed to run on Microsoft IIS

A framework utilizing the primary languages
VBScript and Jscript
8
ASP (cont.)
Advantages

Ease of learning for non-developers

Integration with existing Microsoft Products

Ease of extension via COM objects

Comes free with most Windows operating systems

Developed by Microsoft
Disadvantages

Strongest in a Windows environment, weaker on Unix or
other platforms

Developed by Microsoft
3
9
ColdFusion

First web application server available on Windows NT

Consists of four components:
 ColdFusion Server
 ColdFusion Markup Language
 ColdFusion Studio
 ColdFusion Administrator

CFML is a scripting language designed specifically for
use by web developers.

Tag-based language similar to HTML
10
ColdFusion (cont.)
Advantages
 Simple to learn and use, fast application development time
 Cross-platform - currently supported on Solaris, Linux, Windows,
HP-UX with code compatibility between platforms
 Comprehensive feature set —including built in graphing and
charting functions, and Verity search engine
 Scales well to heavy loads
 Well supported by authoring tools
 Well documented
Disadvantages
 Costs more than competing platforms. A freeware version is
available, but feature limited.
 ColdFusion's core features are extensive, simple and effective.
But extending its features can involve added complexity
11
PHP

PHP (PHP: Hypertext Processor) is an HTML-
embedded, server-side, cross-platform
scripting language used to create dynamic
web pages.

PHP is Open Source software.

Designed to be able to handle web-based
applications and processing
12
PHP (cont.)
Advantages
 Strong support community
 Ease of use for experienced developers
 Installed on nearly all web hosts
 Cross-platform
 Open Source
Disadvantages
 Strong learning curve for inexperienced developers
 Security risks for new developers, due to the power PHP
is given
4
13
JSP

JSP is a Sun Microsystems technology.

Created to simplify the Java Servlets
technology and to be less complicated than
other offerings.

JSP uses a combination of XML and CFM-like
tags, as well as scripts written in Java, to
generate page content.

Supported on Apache, Netscape Enterprise
Server, and Microsoft IIS
14
JSP (cont.)
Advantages
 Strong integration with JavaBeans and other elements
 Ease of use for experienced Java developers
 Rapid Application Development
 Adept scaling to heavy loads
 Cross-platform compatibility
 Open Source availability
Disadvantages
 Slower speed due to being more robust and intensive
 Steeper learning curve when compared to many other
technologies
15
Review Objectives

Differentiate between client-side and server-
side scripting

Describe server-side scripting languages,
including: ASP,ColdFusion, PHP, JSP