search for books and compare prices
Tables of Contents for Perl for Web Site Management
Chapter/Section Title
Page #
Page Count
Preface
xi
 
Getting Your Tools in Order
1
25
Open Source Versus Proprietary Software
1
3
Evaluating a Hosting Provider
4
3
Web Hosting Alternatives
7
1
Getting Started with SSH/Telnet
8
2
Meet the Unix Shell
10
8
Network Troubleshooting
18
4
A Suitable Text Editor
22
4
Getting Started with Perl
26
25
Finding Perl on Your System
26
1
Creating the ``Hello, world!'' Script
27
5
The Dot Slash Thing
32
1
Unix File Permissions
33
2
Running (and Debugging) the Script
35
3
Perl Documentation
38
1
Perl Variables
39
4
A Bit More About Quoting
43
1
``Hello, world!'' as a CGI Script
44
7
Running a Form-to-Email Gateway
51
23
Checking for CGI.pm
51
2
Creating the HTML Form
53
3
The <FORM> Tag's Action Attribute
56
1
The mail_form.cgi Script
57
2
Warnings via Perl's -w Switch
59
1
The Configuration Section
60
1
Invoking CGI.pm
61
1
foreach Loops
62
2
if Statements
64
4
Filehandles and Piped Output
68
1
die Statements
69
1
Outputting the Message
70
2
Testing the Script
72
2
Power Editing with Perl
74
24
Being Careful
74
1
Renaming Files
75
12
Modifying HREF Attributes
87
8
Writing the Modified Files Back to Disk
95
3
Parsing Text Files
98
37
The ``Dirty Data'' Problem
98
2
Required Features
100
1
Obtaining the Data
100
2
Parsing the Data
102
16
Outputting Sample Data
118
3
Making the Script Smarter
121
3
Parsing the Category File
124
4
Testing the Script Again
128
7
Generating HTML
135
32
The Modified make_exhibit.plx Script
135
13
Changes to &parse_exhibitor
148
3
Adding Categories to the Company Listings
151
3
Creating Directories
154
2
Generating the HTML Pages
156
9
Generating the Top-level Page
165
2
Regular Expressions Demystified
167
13
Delimiters
167
1
Trailing Modifiers
168
1
The Search Pattern
169
3
Taking It for a Spin
172
1
Thinking Like a Computer
173
7
Parsing Web Access Logs
180
19
Log File Structure
180
2
Converting IP Addresses
182
4
The Log-Analysis Script
186
5
Different Log File Formats
191
2
Storing the Data
193
2
The ``Visit'' Data Structure
195
4
Date Arithmetic
199
9
Date/Time Conversions
199
2
Using the Time::Local Module
201
2
Caching Date Conversions
203
2
Scoping via Anonymous Blocks
205
1
Using a Begin Block
205
3
Generating a Web Access Report
208
37
The &new_visit and &add_to_visit Subroutines
208
3
Generating the Report
211
4
Showing the Details of Each Visit
215
8
Reporting the Most Popular Pages
223
1
Fancier Sorting
224
6
Mailing the Report
230
10
Using cron
240
5
Link Checking
245
46
Maintaining Links
245
1
Finding Files with File::Find
246
4
Looking for Links
250
1
Extracting
251
4
Putting It All Together
255
11
Using CPAN
266
6
Checking Remote Links
272
5
A Proper Link Checker
277
14
Running a CGI Guestbook
291
19
The Guestbook Script
291
5
Taint Mode
296
1
Guestbook Preliminaries
297
5
Untainting with Backreferences
302
1
File Locking
303
4
Guestbook File Permissions
307
3
Running a CGI Search Tool
310
16
Downloading and Compiling SWISH-E
310
5
Indexing with SWISH-E
315
1
Running SWISH-E from the Command Line
316
1
Running SWISH-E via a CGI Script
317
9
Using HTML Templates
326
18
Using Templates
326
4
Reading Fillings Back In
330
4
Rewriting an Entire Site
334
10
Generating Links
344
21
The Docbase Concept
344
1
The CyberFair Site's Architecture
345
12
The Script's Data Structure
357
1
Using Data::Dumper
358
1
Creating Anonymous Hashes and Arrays
359
1
Automatically Generating Links
360
3
Inserting the Links
363
2
Writing Perl Modules
365
11
A Simple Module Template
366
3
Installing the Module
369
1
The Cyberfair::Page Module
370
6
Adding Pages via CGI Script
376
27
Why Add Pages with a CGI Script?
376
1
A Script for Creating HTML Documents
377
11
Controlling a Multistage CGI Script
388
1
Using Parameterized Links
389
1
Building a Form
390
4
Posting Pages from the CGI Script
394
2
Running External Commands with system and Backticks
396
2
Race Conditions
398
1
File Locking
399
2
Adding Link Checking
401
2
Monitoring Search Engine Positioning
403
17
Installing WWW::Search
404
1
A Single-Search Results Tool
405
5
A Multisearch Results Tool
410
7
The map Function
417
3
Keeping Track of Users
420
38
Stateless Transactions
421
1
Identifying Individual Users
422
1
Basic Authentication
423
3
Automating User Registration
426
1
Storing Data on the Server
427
7
The Register Script
434
17
The Verification Script
451
7
Storing Data in DBM Files
458
21
Data Storage Options
458
1
The tie Function
459
1
A DBM Example Script
460
1
Blocking Versus Nonblocking Behavior
461
2
Storing Multilevel Data in DBM Files
463
1
An MLDBM-Using Registration Script
463
7
An MLDBM-Using Verification Script
470
9
Where to Go Next
479
9
Unix System Administration
479
1
Programming
480
4
Apache Server Administration and mod_perl
484
1
Relational Databases
485
2
Advocacy
487
1
Index
488