1 / 16

Server Side Scripting

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?.

ziven
Télécharger la présentation

Server Side Scripting

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Server Side Scripting Dawn Pedersen

  2. 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.

  3. 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.

  4. What Can Server Scripts Do? • Dynamically edit, change or add any content to a Web page

  5. What Can Server Scripts Do? • Respond to user queries or data submitted from HTML forms

  6. What Can Server Scripts Do? • Access any data or databases and return the results to a browser

  7. What Can Server Scripts Do? • Customize a Web page to make it more useful for individual users

  8. What Can Server Scripts Do? • Allow you to use and reuse code snippets called “includes”. • The includes are saved and edited in another file.

  9. Types of Server Scripts • Active 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).

  10. Types of Server Scripts • PHP: 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.

  11. Types of Server Scripts • Perl • JSP • Ruby • ColdFusion • Python • CGI

  12. Advantages of Server-Side Scripts • Does not require the user to download plugins. • Load times are generally faster than client-side scripting.

  13. Advantages of Server-Side Scripts • You 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.

  14. Advantages of Server-Side Scripts • Your scripts are hidden from view. Users only see the HTML output, even when they view the source.

  15. Disadvantage of Server-Side Scripts • Server-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

  16. 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.

More Related