E-Book Overview
Teach Yourself CGI Programming with Perl 5 in a Week is for the experienced Web page developer who is familiar with basic HTML. The tutorial explains how to use CGI to add interaction to Web sites. The CD includes the source code for all the examples used in the book, along with tools for creating and editing CGI scripts, image maps, forms, and HTML.
E-Book Content
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 ● The Common 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 ● WWW Servers ❍ MS-Based Servers ❍ The CERN Server ❍ The ncSA Server http://docs.rinet.ru:8080/CP7/ (1 of 18) [2/17/2007 2:05:43 PM] Ebook banner rotater for Web Programming and Administration ❍ ● ● ● The Netscape Server The CGI Programming Paradigm ❍ CGI Programs and Security ❍ The Basic Data-Passing Methods of CGI ❍ CGI's Stateless Environment Preventing the Most Common CGI Bugs ❍ Tell the Server Your File Is Executable ❍ Finding Things on Your System ❍ Make Your Program Executable Learning Perl ❍ Hello World ❍ Exercise 1.1. Working with Perl variables ❍ Exercise 1.2. Using the scalar variable ● Summary