Book description
Programming on the Web today can involve any of several technologies, but the Common Gateway Interface (CGI) has held its ground as the most mature method--and one of the most powerful ones--of providing dynamic web content. CGI is a generic interface for calling external programs to crunch numbers, query databases, generate customized graphics, or perform any other server-side task. There was a time when CGI was the only game in town for server-side programming; today, although we have ASP, PHP, Java servlets, and ColdFusion (among others), CGI continues to be the most ubiquitous server-side technology on the Web.CGI programs can be written in any programming language, but Perl is by far the most popular language for CGI. Initially developed over a decade ago for text processing, Perl has evolved into a powerful object-oriented language, while retaining its simplicity of use. CGI programmers appreciate Perl's text manipulation features and its CGI.pm module, which gives a well-integrated object-oriented interface to practically all CGI-related tasks. While other languages might be more elegant or more efficient, Perl is still considered the primary language for CGI.CGI Programming with Perl, Second Edition, offers a comprehensive explanation of using CGI to serve dynamic web content. Based on the best-selling CGI Programming on the World Wide Web, this edition has been completely rewritten to demonstrate current techniques available with the CGI.pm module and the latest versions of Perl. The book starts at the beginning, by explaining how CGI works, and then moves swiftly into the subtle details of developing CGI programs.Topics include:
- Incorporating JavaScript for form validation
- Controlling browser caching
- Making CGI scripts secure in Perl
- Working with databases
- Creating simple search engines
- Maintaining state between multiple sessions
- Generating graphics dynamically
- Improving performance of your CGI scripts
Publisher resources
Table of contents
- CGI Programming with Perl, 2nd Edition
- A Note Regarding Supplemental Files
- Preface
- 1. Getting Started
- 2. The Hypertext Transport Protocol
- 3. The Common Gateway Interface
- 4. Forms and CGI
- 5. CGI.pm
- 6. HTML Templates
- 7. JavaScript
- 8. Security
- 9. Sending Email
- 10. Data Persistence
- 11. Maintaining State
- 12. Searching the Web Server
- 13. Creating Graphics on the Fly
- 14. Middleware and XML
- 15. Debugging CGI Applications
-
16. Guidelines for Better CGI Applications
- Architectural Guidelines
- Coding Guidelines
- 17. Efficiency and Optimization
- A. Works Cited and Further Reading
- B. Perl Modules
- Index
- About the Authors
- Colophon
- Copyright
Product information
- Title: CGI Programming with Perl, 2nd Edition
- Author(s):
- Release date: June 2000
- Publisher(s): O'Reilly Media, Inc.
- ISBN: 9781565924192
You might also like
book
Programming Perl, 4th Edition
Adopted as the undisputed Perl bible soon after the first edition appeared in 1991, Programming Perl …
book
Intermediate Perl, 2nd Edition
This book picks up right where Learning Perl leaves off. With Intermediate Perl, you’ll graduate from …
book
Beginning Perl Programming: From Novice to Professional
Get started with Perl 5 and learn the important core concepts of Perl programming, such as …
book
Programming the Perl DBI
One of the greatest strengths of the Perl programming language is its ability to manipulate large …