16
Server Side Scripting Dawn Pedersen

Server Side Scripting

  • Upload
    ziven

  • View
    47

  • Download
    0

Embed Size (px)

DESCRIPTION

Server Side Scripting. Dawn Pedersen. What is Server-Side Scripting?. Client-side scripting is about "programming" the behavior of the browser. Server-side scripting is about "programming" the behavior of the server. What is Server-Side Scripting?. - PowerPoint PPT Presentation

Citation preview

Page 1: Server Side Scripting

Server Side Scripting

Dawn Pedersen

Page 2: Server Side Scripting

What is Server-Side Scripting?Client-side scripting is about "programming"

the behavior of the browser. Server-side scripting is about "programming"

the behavior of the server.

Page 3: Server Side Scripting

What is Server-Side Scripting?Normally when a browser requests an HTML

file, the server immediately returns the file.However, if the file contains a server-side

script, the script inside the HTML file is executed by the server before the file is returned to the browser as plain HTML.

Page 4: Server Side Scripting

What Can Server Scripts Do?Dynamically edit, change or add any content

to a Web page

Page 5: Server Side Scripting

What Can Server Scripts Do?Respond to user queries or data submitted

from HTML forms

Page 6: Server Side Scripting

What Can Server Scripts Do?Access any data or databases and return the

results to a browser

Page 7: Server Side Scripting

What Can Server Scripts Do?Customize a Web page to make it more useful

for individual users

Page 8: Server Side Scripting

What Can Server Scripts Do?Allow you to use and reuse code snippets

called “includes”. The includes are saved and edited in another

file.

Page 9: Server Side Scripting

Types of Server ScriptsActive Server Pages (ASP) was developed my

Microsoft for creating dynamically-generated web pages. First released in 1998.Runs on Windows Server.Succeeded by ASP.NET in

2002.Files end in .asp (for ASP)

or .aspx (for ASP.NET).

Page 10: Server Side Scripting

Types of Server ScriptsPHP: Hypertext Preprocessor (PHP) is a widely

used, general-purpose scripting language.Created in 1995 and originally stood for personal

home page.Can be interpreted by

any web server with a PHP processor module.

Most commonly run on Apache web server software.

Files typically end in .php.

Page 11: Server Side Scripting

Types of Server ScriptsPerlJSPRubyColdFusionPythonCGI

Page 12: Server Side Scripting

Advantages of Server-Side ScriptsDoes not require the user to download

plugins.Load times are generally faster than client-

side scripting.

Page 13: Server Side Scripting

Advantages of Server-Side ScriptsYou can create a single website template for

the entire website; each new dynamic page you create will automatically use it.

You can configure a site to use a content management system, which simplifies the editing, publishing, adding of images, and creation of web applications.

Page 14: Server Side Scripting

Advantages of Server-Side ScriptsYour scripts are hidden from view. Users only

see the HTML output, even when they view the source.

Page 15: Server Side Scripting

Disadvantage of Server-Side ScriptsServer-side scripts can be used by attackers to

gain access to the server. Because the scripts often respond to URL input,

changing the URL to something that exploits a security hole can give the user server access.

To combat such attacks, system administrators need to keep all server-side scripts updated to their latest secure versions and use a firewall.

Example URL:http://www.amazon.com/Premier-Kitty-Harness-Medium-Royal/dp/B000OBFI0M/ref=sr_1_3?s=pet-supplies&ie=UTF8&qid=1297049088&sr=1-3

Page 16: Server Side Scripting

Who Creates the Scripts?Both client-side and server-side scripts are

generally written by web developers rather than web designers.

However, a solid understanding of the basics of both can make a web designer more powerful and able to generate a larger income.