CGI programming with Perl

著者

書誌事項

CGI programming with Perl

Scott Guelich, Shishir Gundavaram and Gunther Birznieks

O'Reilly, 2000

2nd ed

大学図書館所蔵 件 / 9

この図書・雑誌をさがす

内容説明・目次

内容説明

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

目次

Preface 1. Getting Started History Introduction to CGI Alternative Technologies Web Server Configuration 2. The Hypertext Transport Protocol URLs HTTP Browser Requests Server Responses Proxies Content Negotiation Summary 3. The Common Gateway Interface The CGI Environment Environment Variables CGI Output Examples 4. Forms and CGI Sending Data to the Server Form Tags Decoding Form Input 5. CGI.pm Overview Handling Input with CGI.pm Generating Output with CGI.pm Alternatives for Generating Output Handling Errors 6. HTML Templates Reasons for Using Templates Server Side Includes HTML::Template Embperl Mason 7. JavaScript Background Forms Data Exchange Bookmarklets 8. Security The Importance of Web Security Handling User Input Encryption Perl's Taint Mode Data Storage Summary 9. Sending Email Security Email Addresses Structure of Internet Email sendmail mailx and mail Perl Mailers procmail 10. Data Persistence Text Files DBM Files Introduction to SQL DBI 11. Maintaining State Query Strings and Extra Path Information Hidden Fields Client-Side Cookies 12. Searching the Web Server Searching One by One Searching One by One, Take Two Inverted Index Search 13. Creating Graphics on the Fly File Formats Outputting Image Data Generating PNGs with GD Additional GD Modules PerlMagick 14. Middleware and XML Communicating with Other Servers An Introduction to XML Document Type Definition Writing an XML Parser CGI Gateway to XML Middleware 15. Debugging CGI Applications Common Errors Perl Coding Techniques Debugging Tools 16. Guidelines for Better CGI Applications Architectural Guidelines Coding Guidelines 17. Efficiency and Optimization Basic Perl Tips, Top Ten FastCGI mod_perl A. Works Cited and Further Reading B. Perl Modules Index

「Nielsen BookData」 より

詳細情報

ページトップへ