What you'll learn?

  • Understand application development project fundamentals
  • Identify and work with specific server-side development environments
  • Identify various development platforms
  • Define CGI and Perl, and explain their significance to the World Wide Web
  • Use Perl file input and output capabilities
  • Use pattern matching and substitution to display information correctly
  • Define and use Open Database Connectivity (ODBC), and the DBI and the DBD-ODBC modules
  • Discuss CGI security issues pertaining to Perl scripts

Description

Fundamentals of CGI Programming Using Perl are a 12-hour course that teaches students how to use Common Gateway Interface (CGI) Perl programs and scripts on a Web server. Students will learn how to write print-to-screen scripts, customize Web page hit counters, create and use business forms that interact with text files, manipulate data in a database, work with a relational database via Open Database Connectivity (ODBC), and explore Web server security issues related to CGI files.

Audience :

Webmasters, software developers, application programmers, client/server developers, and desktop publishers.

Topics :

Application Development Fundamentals

o  The Application Development Process

o  Platforms, Languages and Protocols

o  Client-side Versus Server-side Scripting

o  Hypertext Transfer Protocol

Introduction to CGI and Perl

o  Web Architecture Overview

o  What Is CGI?

o  Why Use CGI?

o  What Is Perl?

o  Why Use Perl?

Perl Fundamentals

o  Accessing Environment Variables

o  Using CGI.pm to Access Environment Variables

o  The if Statement

o  Logical Expressions

o  Pattern Matching

o  Perl Arrays

o  Passing Values to Functions

o  Associative Arrays

o  Loops

Perl File Input and Output Capabilities

o  File IO Using File Handles

o  File Modes

o  Using Files in Scripts

o  Creating a Hit Counter

Controlling Processing and Output

o  Introduction to CGI.pm

o  Incorporating HTML into Perl using CGI.pm

o  Using CGI.pm to Access Form Data

o  Processing User-Entered Data

o  Using One File to Create and Process an HTML Form

o  Using Perl to Validate Form Input

o  Testing Your Script Offline

Saving User-supplied Data to a File

o  Saving Form Data to a File

o  Modifying Form Data

o  Pattern Matching Revisited

Reading a File

o  Introduction to Data Reading

o  Pattern Matching with Regular Expressions

o  Substitution

Introduction to Databases

o  Introduction to Database Programming

o  Four Steps to Interacting with Databases

o  Connecting to Databases

o  Quoting Revisited Querying Table and Field Names

o  Web Database Query Example

CGI Security Issues

o  Type of Attacks

o  Securing the CGI Script

o  Securing the Server

o  Securing Form Data

o  Securing Data Passed to Commands

CGI Security Issues

o  Resources (Appendix)

o  Installing Apache Server

o  Installing Perl on UNIX and Win 32

o  Requirements Documents

Prerequisities :

Recommended Knowledge :

Students must have CIW Foundations certification or equivalent experience, and have completed the Web Languages series (JavaScript Fundamentals and Perl Fundamental) or have a working knowledge of client-side scripting, JavaScript or VBScript.

Category :

  • Programming
  • Web

Training Materials :

CIW Official Curriculum

Labs :

This course includes several labs to ensure you will gain the targeted skills and experience.