Click Here!
home account info subscribe login search My ITKnowledge FAQ/help site map contact us


 
Brief Full
 Advanced
      Search
 Search Tips
To access the contents, click the chapter and section titles.

Perl CGl Programming: No experience required.
(Publisher: Sybex, Inc.)
Author(s): Erik Strom
ISBN: 0782121578
Publication Date: 11/01/97

Bookmark It

Search this book:
 
Introduction
Acknowledgment

Skill 1—Introducing Perl and CGI
Why Perl?
Java
Proprietary Languages
CGI
Perl’s Ancient History
We Owe It All to Larry Wall: A History of Perl
Perl and the World Wide Web
Building a Perl Script
First Things First: Perls before Code
Loading the Interpreter
Running the “Hello” Example
How Perl Programs Run
Dissecting the “Hello” Example
Variables, Scalars, and Lists in Perl
Perl Variables: What’s in a Name
Introducing Scalars
Perl Lists
What’s in a List?
Lists of Strings
Perl and the Common Gateway Interface
What Is CGI, Anyway?
CGI Programming Languages
C, C++
Visual Basic
Shell Languages
Proprietary CGI Methods
Are You Experienced?

Skill 2—Bringing Perl to the World Wide Web
Setting Up an HTTP Server
Running the Sambar Server on Windows 95 or NT
NT and Internet Information Server
Perl Meets the World Wide Web
Speaking in HTML
Running Your New Perl Program
hellowww.pl Explained
The MIME Header
Consolidating the Code
Perl Subroutines
Using the require Command
Creating an Ender and Header Code File
CGI and HTML
Using the GET and POST Commands
MIME Defines the Rules
Getting Acquainted with the Sambar Server
Using TCP/IP and the hosts file
Running the Sambar Server
Are You Experienced?

Skill 3—Connecting Perl to the World Wide Web
Using the CGI Environment
Understanding Environment Variables
Setting the Environment Variables
CGI Environment Variables
Some New Perl Concepts
Displaying the CGI Environment
Writing the Display Program
The each Function and while Block
Understanding MIME Types
Application
Audio and Video
Image
Message
Multipart
Text
Are You Experienced?

Skill 4—Using Perl and CGI in the Real World
The Task: Counting Your Visitors
How to Go About It?
Think, Don’t Code!
How Perl Deals with Files
Files in Perl
Opening, Closing, and Writing Files
File Handles
Input, Output
print Works with Files, Too
Bringing Your Counter to the Web
You’ve Been Here Before
Refining the Program
To Increment or Not
Comparing Conditions
Running the Counter
Getting around HTML
Using Frames to Automate a URL
Are You Experienced?

Skill 5—Creating Real-World HTML Forms with Perl and CGI
Building an HTML Form
A Simple Form
Submitting the Form
URLs and CGI
“Printable” Characters
URL Encoding with GET
Decoding a Query String
The Power of Regular Expressions
Translations, Substitutions
Regular Expressions in Detail
Are You Experienced?

Skill 6—Perl and the Complex Web Page
Quizzing Your Visitors
Polling on the Web
Processing the Quiz Form
POST and STDIN
The Results Are In: Now What?
Basic Polling
The New Quiz Form Processor
Processing Forms in the Real World
Are You Experienced?

Skill 7—Creating a Guest Book for Your Web Site
Designing the Guest Book
Adding Guest Book Entries
Dissecting the Code
Displaying the Guest Book
Displaying the Guest Book with Perl
Dissecting the Display Program
What’s in a Form: Security Issues
A Last Word on Security
Are You Experienced?

Skill 8—Creating Dynamic Web Pages: More Tools
Using Server-Side Includes
Assembling the SSI Directives
A Last Word on SSI
Generating Graphics on the Fly
Creating Graphics with Ghostscript
Making a Graphical Access Counter
The Counter: Making It Graphical
Dissecting the Graphical Access Counter
Are You Experienced?

Skill 9—Monitoring Web Site Activity
Using Log Files and Simple Reports
Decoding a Log File
Making IIS Compatible with UNIX
Extracting Log File Information
Using Perl to Decode a Server Log
Dissecting the Example Code
Reading Data from a Real Log File
Breaking Down the New Code Sample
Monitoring Activity from a Web Page
Who Gets In and How Often?
Analyzing the First Hit Counter
Counting Hits on the Entire Log Directory
Analyzing the Whole-Directory Hit Counter
Taking the Hit Counter to the Web
Are You Experienced?

Skill 10—The Language of the Web
Introducing SGML: the Basis of HTML
Marking Up Documents
Describing a Document
Defining Document Types
Using DTDs to Define a Language
Examining the HTML DTD
Bringing HTML to the World Wide Web
Browsing the World Wide Web
Extending HTML with Applets and Frames
Using the Netscape Extensions
Examining the Frame Structure
Using Netscape Applets
Are You Experienced?

Skill 11—Platforms on the World Wide Web
Choosing a Computer and Operating System
Deciding on the Hardware
Installing the Right Amount of Memory
Choosing an Operating System
Comparing the Big Three
UNIX
Windows NT
Windows 95
Making Choices about Servers and Browsers
Choosing a Web Server Package
Supporting Web Browsers
Are You Experienced?

Skill 12—Advanced Perl-CGI Tricks
Searching a Database
Turning the Guest Book into a Database
Dissecting the First Code Version
Taking the Search to the Web
Writing a More Complex Search
Programming for the Internet
Dealing with Internet Addresses
Resolving Internet Addresses with Perl
Dissecting the Lookup Script
Are You Experienced?

Skill 13—Security on Your Web Site
Understanding the Security Issues
Finding Security Holes in Your System
Providing a Secure Connection
Protecting Web Pages with Passwords
Reading and Writing Encrypted Passwords
Creating a Password File
Moving Passwords to the Web
Applying Passwords on Your Site
Maintaining a Secure Web Site
Editing the Guest Book
Creating Maintenance Tools
Are You Experienced?
Appendix A
Appendix B
Glossary
Index

Products |  Contact Us |  About Us |  Privacy  |  Ad Info  |  Home

Use of this site is subject to certain Terms & Conditions, Copyright © 1996-2000 EarthWeb Inc.
All rights reserved. Reproduction whole or in part in any form or medium without express written permission of EarthWeb is prohibited.