文档介绍:Ebook banner rotater for Web Programming and Administration
Teach Yourself CGI
Programming with PERL
5 in a Week, 2E
by Eric Herrmann
C O N T E N T S
Introduction
Chapter 1 An Introduction to CGI and Its
Environment
● mon Gateway Interface (CGI)
● HTML, HTTP, and Your CGI Program
❍ The Role of HTML
❍ The HTTP Headers
❍ Your CGI Program
● The Directories on Your Server
❍ The Server Root
❍ The Document Root
● File Privileges, Permissions, and Protection
●
❍ MS-Based Servers
❍ The CERN Server
❍ The ncSA Server
http://docs..ru:8080/CP7/ (1 of 18) [2/17/2007 2:05:43 PM]
Ebook banner rotater for Web Programming and Administration
❍ scape Server
● The CGI Programming Paradigm
❍ CGI Programs and Security
❍ The Basic Data-Passing Methods of CGI
❍ CGI's Stateless Environment
● Preventing the mon CGI Bugs
❍ Tell the Server Your File Is Executable
❍ Finding Things on Your System
❍ Make Your Program Executable
● Learning Perl
❍ Hello World
❍ Exercise . Working with Perl variables
❍ Exercise . Using the scalar variable
● Summary
● Q&A
Chapter 2 Understanding How the Server and
municate
● Using the Uniform Resource Identifier
❍ The Protocol
❍ The Domain Name
❍ The Directory, File, or CGI Program
● Requesting Your Web Page with the Browser
● Using the Connection
❍ TCP/IP, the Public Socket, and the Port
❍ One More Time, Using the Switchboard Analogy
● Using the HTTP Headers
❍ Status Codes in Response Headers
❍ The Method Request Header
❍ The Full Method Request Header
❍ The Accept Request Header
❍ The HTTP Response Header
● Changing the Returned Web Page Based on the User-Agent Header
http://docs..ru:8080/CP7/ (2 of 18) [2/17/2007 2:05:43 PM]
Ebook banner rotater for Web Programming and Administration
● Learning Perl
❍ Exercise . Using the Perl regular array
❍ Exercise . Using Perl's associative array
● Summary
● Q&A
Chapter 3 Using Server Side mand