Buying Options
Perl for Web Site Management
Print $34.95
Add to Cart
Safari Books Online
Add to Cart
What is this?
Print £26.99
Add to Cart
What is this?
Description
Learn to do everyday tasks on your web site using Perl--even if you have no programming background. Perl for Web Site Management shows how to write CGI scripts, incorporate search engines, convert multiple text files to HTML, monitor log files, and track visitors to your site. Whether you're a developer, a designer, or simply a dabbler on the Web, this is the hands-on introduction to Perl you've been waiting for.
Full Description
Table of Contents
  1. Chapter 1 Getting Your Tools in Order

    1. Open Source Versus Proprietary Software

    2. Evaluating a Hosting Provider

    3. Web Hosting Alternatives

    4. Getting Started with SSH/Telnet

    5. Meet the Unix Shell

    6. Network Troubleshooting

    7. A Suitable Text Editor

  2. Chapter 2 Getting Started with Perl

    1. Finding Perl on Your System

    2. Creating the "Hello, world!" Script

    3. The Dot Slash Thing

    4. Unix File Permissions

    5. Running (and Debugging) the Script

    6. Perl Documentation

    7. Perl Variables

    8. A Bit More About Quoting

    9. "Hello, world!" as a CGI Script

  3. Chapter 3 Running a Form-to-Email Gateway

    1. Checking for CGI.pm

    2. Creating the HTML Form

    3. The <FORM> Tag's ACTION Attribute

    4. The mail_form.cgi Script

    5. Warnings via Perl's -w Switch

    6. The Configuration Section

    7. Invoking CGI.pm

    8. foreach Loops

    9. if Statements

    10. Filehandles and Piped Output

    11. die Statements

    12. Outputting the Message

    13. Testing the Script

  4. Chapter 4 Power Editing with Perl

    1. Being Careful

    2. Renaming Files

    3. Modifying HREF Attributes

    4. Writing the Modified Files Back to Disk

  5. Chapter 5 Parsing Text Files

    1. The "Dirty Data" Problem

    2. Required Features

    3. Obtaining the Data

    4. Parsing the Data

    5. Outputting Sample Data

    6. Making the Script Smarter

    7. Parsing the Category File

    8. Testing the Script Again

  6. Chapter 6 Generating HTML

    1. The Modified make_exhibit.plx Script

    2. Changes to &parse_exhibitor

    3. Adding Categories to the Company Listings

    4. Creating Directories

    5. Generating the HTML Pages

    6. Generating the Top-level Page

  7. Chapter 7 Regular Expressions Demystified

    1. Delimiters

    2. Trailing Modifiers

    3. The Search Pattern

    4. Taking It for a Spin

    5. Thinking Like a Computer

  8. Chapter 8 Parsing Web Access Logs

    1. Log File Structure

    2. Converting IP Addresses

    3. The Log-Analysis Script

    4. Different Log File Formats

    5. Storing the Data

    6. The "Visit" Data Structure

  9. Chapter 9 Date Arithmetic

    1. Date/Time Conversions

    2. Using the Time::Local Module

    3. Caching Date Conversions

    4. Scoping via Anonymous Blocks

    5. Using a BEGIN Block

  10. Chapter 10 Generating a Web Access Report

    1. The &new_visit and &add_to_visit Subroutines

    2. Generating the Report

    3. Showing the Details of Each Visit

    4. Reporting the Most Popular Pages

    5. Fancier Sorting

    6. Mailing the Report

    7. Using cron

  11. Chapter 11 Link Checking

    1. Maintaining Links

    2. Finding Files with File::Find

    3. Looking for Links

    4. Extracting

    5. Putting It All Together

    6. Using CPAN

    7. Checking Remote Links

    8. A Proper Link Checker

  12. Chapter 12 Running a CGI Guestbook

    1. The Guestbook Script

    2. Taint Mode

    3. Guestbook Preliminaries

    4. Untainting with Backreferences

    5. File Locking

    6. Guestbook File Permissions

  13. Chapter 13 Running a CGI Search Tool

    1. Downloading and Compiling SWISH-E

    2. Indexing with SWISH-E

    3. Running SWISH-E from the Command Line

    4. Running SWISH-E via a CGI Script

  14. Chapter 14 Using HTML Templates

    1. Using Templates

    2. Reading Fillings Back In

    3. Rewriting an Entire Site

  15. Chapter 15 Generating Links

    1. The Docbase Concept

    2. The CyberFair Site's Architecture

    3. The Script's Data Structure

    4. Using Data::Dumper

    5. Creating Anonymous Hashes and Arrays

    6. Automatically Generating Links

    7. Inserting the Links

  16. Chapter 16 Writing Perl Modules

    1. A Simple Module Template

    2. Installing the Module

    3. The Cyberfair::Page Module

  17. Chapter 17 Adding Pages via CGI Script

    1. Why Add Pages with a CGI Script?

    2. A Script for Creating HTML Documents

    3. Controlling a Multistage CGI Script

    4. Using Parameterized Links

    5. Building a Form

    6. Posting Pages from the CGI Script

    7. Running External Commands with system and Backticks

    8. Race Conditions

    9. File Locking

    10. Adding Link Checking

  18. Chapter 18 Monitoring Search Engine Positioning

    1. Installing WWW::Search

    2. A Single-Search Results Tool

    3. A Multisearch Results Tool

    4. The map Function

  19. Chapter 19 Keeping Track of Users

    1. Stateless Transactions

    2. Identifying Individual Users

    3. Basic Authentication

    4. Automating User Registration

    5. Storing Data on the Server

    6. The Register Script

    7. The Verification Script

  20. Chapter 20 Storing Data in DBM Files

    1. Data Storage Options

    2. The tie Function

    3. A DBM Example Script

    4. Blocking Versus Nonblocking Behavior

    5. Storing Multilevel Data in DBM Files

    6. An MLDBM-Using Registration Script

    7. An MLDBM-Using Verification Script

  21. Chapter 21 Where to Go Next

    1. Unix System Administration

    2. Programming

    3. Apache Server Administration and mod_perl

    4. Relational Databases

    5. Advocacy

  1. Colophon

View Full Table of Contents
Product Details
Title:
Perl for Web Site Management
By:
John Callender
Publisher:
O'Reilly Media
Formats:
  • Print
  • Safari Books Online
Print Release:
October 2001
Pages:
528
Print ISBN:
978-1-56592-647-9
| ISBN 10:
1-56592-647-1
Customer Reviews
About the Author
  1. John Callender

    John Callender is an independent consultant specializing in web development. He has been a teacher, writer, editor, and network administrator.

    View John Callender's full profile page.

Colophon

Our look is the result of reader comments, our own experimentation, and feedback from distribution channels. Distinctive covers complement our distinctive approach to technical topics, breathing personality and life into potentially dry subjects. The animal on the cover of Perl for Web Site Mangement is a proboscis monkey. The coastal rainforests and mangrove swamps of Borneo and the forests of the lower Kinabatangan River have the largest concentration of this species (Nasalis larvatus). Their fur is brick-red, and they have long tails and large bellies. The most obvious feature of Proboscis monkeys is the male's extremely long nose, which is shaped like a cucumber. The monkeys travel in groups of about five to fifteen. A group is usually made up of a dominant adult male with a harem of up to ten females as well as juveniles. They are vegetarians, eating primarily leaves, along with fruit, seeds, and flowers. Unusually among apes, they are very skilled swimmers and divers in the rivers that make up a large part of their habitat. The proboscis monkey's Malaysian name is Monyet Belanda, translated as "Dutchman Monkey." During the European colonial period, the Malaysians apparently thought the monkeys' red hair, pot bellies, and big noses resembled the European traders and colonialists.

This unique monkey is threatened with extinction through hunting and loss of habitat. The rainforests and swamps where they live are under severe threat from logging and land clearing. Attempts to keep this monkey in zoos have not been successful; the shy species does not survive. The only way to observe the proboscis monkey is in the rainforest, its natural habitat in the wild. Colleen Gorman was the production editor, and Audrey Doyle was the copyeditor for Perl for Web Site Mangement. Sada Preisch and Leanne Soylemez provided quality control. Judy Hoer wrote the index.

Hanna Dyer designed the cover of this book, based on a series design by Edie Freedman. The cover image is a 19th-century engraving from the Dover Pictorial Archive. Emma Colby produced the cover layout with QuarkXPress 4.1 using Adobe's ITC Garamond font.

David Futato designed the interior layout. Neil Walls converted the files from Microsoft Word to FrameMaker 5.5.6 using tools created by Mike Sierra. The text font is Linotype Birka; the heading font is Adobe Myriad Condensed; and the code font is LucasFont's TheSans Mono Condensed. The illustrations that appear in the book were produced by Robert Romano and Jessamyn Read using Macromedia Free-Hand 9 and Adobe Photoshop 6. The tip and warning icons were drawn by Christopher Bing. This colophon was written by Colleen Gorman.

Whenever possible, our books use a durable and flexible lay-flat binding. If the page count exceeds this binding's limit, perfect binding is used.

  • Book cover of Perl for Web Site Management