Skip to content

CGI Programming 101 : Perl for the World Wide Web

Best in textbook rentals since 2012!

ISBN-10: 0966942604

ISBN-13: 9780966942606

Edition: 1st 1999

Authors: Jacqueline D. Hamilton

List price: $24.95
Blue ribbon 30 day, 100% satisfaction guarantee!
what's this?
Rush Rewards U
Members Receive:
Carrot Coin icon
XP icon
You have reached 400 XP and carrot coins. That is the daily max!

Customers also bought

Book details

List price: $24.95
Edition: 1st
Copyright year: 1999
Publisher: CGI101.COM
Binding: Perfect 
Pages: 224
Size: 7.00" wide x 9.25" long x 0.50" tall
Weight: 0.792
Language: English

Introductionp. ix
Getting Startedp. 1
Where to Write Your Scriptsp. 1
How to Upload Scripts to the Unix Hostp. 2
File Permissionsp. 2
Basics of a Perl Scriptp. 2
Basics of a CGI Scriptp. 3
Debugging a Scriptp. 5
Perl Variablesp. 9
Scalar Variablesp. 9
Arraysp. 10
Array Functionsp. 11
Hashesp. 13
Hash Functionsp. 15
CGI Environment Variablesp. 17
A Simple Query Formp. 19
Remote Host IDp. 21
Last Page Visitedp. 22
Checking Browser Typep. 22
Processing Formsp. 25
Decoding Form Datap. 26
A Form-to-Email CGIp. 29
Sending Mail to More Than One Recipientp. 32
Subroutinesp. 32
Advanced Formsp. 35
If-Else Blocksp. 35
Conditional Test Operatorsp. 36
Handling Checkboxesp. 36
Handling Radio Buttonsp. 38
Handling SELECT Fieldsp. 40
Multiple-Choice SELECTsp. 41
A Survey Form and CGIp. 42
Reading and Writing Data filesp. 47
File Permissionsp. 47
Opening Filesp. 48
File Lockingp. 51
Closing Filesp. 52
Reading Filesp. 52
Multi-Script Formsp. 57
When a Multi-Script Form is Usedp. 57
A Flat-File Catalog Database and Order Pagesp. 58
Searching and Sortingp. 69
Searchingp. 69
Sortingp. 72
Site-Wide Searchingp. 76
Using Server-Side Includesp. 79
SSI Syntaxp. 79
List of SSI Elementsp. 80
Including Filesp. 84
Executing CGIsp. 86
SSI Page Counterp. 86
SSI Error Loggerp. 87
Passing Variables to a CGIp. 89
Executing Server Commandsp. 90
Randomnessp. 93
Random Number Seedsp. 93
A Random Image Pickerp. 94
A Random Password Generatorp. 95
A Random Ad Bannerp. 97
Redirects and Refreshesp. 101
Sending Visitors to Other Pagesp. 101
Refreshesp. 103
Working With Stringsp. 107
Comparing Stringsp. 107
Finding (and Replacing) Substringsp. 108
Joining Stringsp. 109
Quoting with qqp. 111
Formatting Strings with printf and sprintfp. 112
Date and Time in Perlp. 117
How to Generate the Datep. 117
Greenwich Mean Timep. 118
The Year 2000p. 118
Month and Day Namesp. 119
Dates That Have Passed (or Have Yet to Happen)p. 119
Formatting Dates and Timesp. 120
Countdown Clocksp. 121
Christmas Countdownp. 122
Year 2000 Countdown (or Count-Up)p. 122
Regular Expressionsp. 125
Patternsp. 125
Validating E-Mail Addressesp. 127
Substitutionsp. 128
Stripping HTML Tagsp. 129
Backreferencesp. 129
Case-Insensitive Matchingp. 130
Anchoring a Matchp. 131
HTTP Cookiesp. 133
What is a Cookie?p. 133
Cookie Parametersp. 134
How to Set Cookiesp. 134
How to Read Cookiesp. 135
Limiting Pathsp. 137
Domainsp. 137
Multiple Cookiesp. 138
Writing Secure Scriptsp. 141
Tainted Datap. 141
Taint Checkingp. 143
Untainting Datap. 144
World-Writable Filesp. 146
Perl Modulesp. 149
Modules and Object Orientednessp. 150
Using Modules: CGI.pmp. 151
The All-in-One Form CGIp. 153
Uploading Files From a Formp. 156
Using Modules: GD.pm -- The Graphics Modulep. 158
Where to Find Modulesp. 161
Database Programming with Perlp. 163
SQLp. 163
MySQLp. 164
The Perl DBI Modulep. 169
Inserting Data Into a Tablep. 173
A SQL Page Counterp. 174
Writing Your Own Modulesp. 177
Exporting Variablesp. 180
Exporting Database Handlesp. 181
Writing Modules for Othersp. 181
Working With Unixp. 183
Who's Onlinep. 184
Whois CGIp. 184
Buffering (Ping CGI)p. 186
Scheduling Scripts With cronp. 188
Conclusionp. 191
Online Resourcesp. 193
Unix Tutorial and Command Referencep. 195
Password Tutorialp. 205
Indexp. 207
Table of Contents provided by Syndetics. All Rights Reserved.