⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 ch00_01.htm

📁 用perl编写CGI的好书。本书从解释CGI和底层HTTP协议如何工作开始
💻 HTM
字号:
<?label 0. Preface?><html><head><title>Preface (CGI Programming with Perl)</title><link href="../style/style1.css" type="text/css" rel="stylesheet" /><meta name="DC.Creator" content="Scott Guelich, Gunther Birznieks and Shishir Gundavaram" /><meta scheme="MIME" content="text/xml" name="DC.Format" /><meta content="en-US" name="DC.Language" /><meta content="O'Reilly & Associates, Inc." name="DC.Publisher" /><meta scheme="ISBN" name="DC.Source" content="1565924193L" /><meta name="DC.Subject.Keyword" content="stuff" /><meta name="DC.Title" content="CGI Programming with Perl" /><meta content="Text.Monograph" name="DC.Type" /></head><body bgcolor="#ffffff"><img src="gifs/smbanner.gif" alt="Book Home" usemap="#banner-map" border="0" /><map name="banner-map"><area alt="CGI Programming with Perl" href="index.htm" coords="0,0,466,65" shape="rect" /><area alt="Search this book" href="jobjects/fsearch.htm" coords="467,0,514,18" shape="rect" /></map><div class="navbar"><table border="0" width="515"><tr><td width="172" valign="top" align="left"><a href="copyrght.htm"><img src="../gifs/txtpreva.gif" alt="Previous" border="0" /></a></td><td width="171" valign="top" align="center"><a href="index.htm">CGI Programming with Perl</a></td><td width="172" valign="top" align="right"><a href="ch00_02.htm"><img src="../gifs/txtnexta.gif" alt="Next" border="0" /></a></td></tr></table></div><hr align="left" width="515" /><h1 class="chapter">Preface</h1><p>The first edition of <em class="citetitle">CGI Programming on the World WideWeb</em> was published in early 1996. The Web was verydifferent then: the number of web hosts was 100,000, NetscapeNavigator 2.0 (the first JavaScript<img align="absmiddle" src="figs/U2122.gif">-enabled browser) wasreleased, and Java<img align="absmiddle" src="figs/U2122.gif"> was less than a year old and was usedprimarily for applets. The Web was still young, but it was developingquickly.</p><p>In 1996, CGI was the only stable and well-understood method forcreating dynamic content on the Web. However, very few sitesexploited its full potential. In the first edition, Shishir wrote:</p><p>Today's computer users expect custom answers to particularquestions. Gone are the days when people were satisfied by thecomputing center staff passing out a single, general report to allusers. Instead, each salesperson, manager, and engineer wants toenter specific queries and get up-to-date responses. And if a singlecomputer can do that, why not the Web?</p><p>This is the promise of CGI. You can display sales figures forparticular products month by month, as requested by your staff, usingbeautiful pie charts or plots. You can let customers enter keywordsin order to find information on your products.</p><p>In 1996, these were bold claims. Today, they describe business asusual. That promise of CGI has certainly been fulfilled.</p><p>This book is about more than writing CGI scripts. It is aboutprogramming for the Web. Although we focus on CGI programming withPerl (thus the title change for this edition), many of the conceptswe cover are common to all server-side web development. Even if youfind yourself working with alternative technologies down the road,the effort you invest learning CGI now will continue to yield valuelater.</p><div class="sect1"><a name="ch00-1-fm2xml" /><h2 class="sect1">0.1. What's in the Book</h2><p>Because CGI has changed so much in the last few years, it is onlyappropriate that this new edition reflect the changes. Thus, most ofthis book has been rewritten. New topics include CGI.pm, HTMLtemplates, security, JavaScript, XML, search engines, stylesuggestions, and compatible, high-performance alternatives to CGI.Previous topics, such as session management, email, dynamic images,and relational databases, have been expanded and updated. Finally, wemodified our presentation of CGI to begin with a discussion of HTTP,the underlying language of the Web. An understanding of HTTP providesa foundation for a more thorough understanding of CGI.</p><p>Despite the changes, the original goal of this book remains the same:to teach you everything you need to know to become a good CGIdeveloper. This is not a learn-by-example book -- it isn'tbuilt around a handful of CGI scripts with a discussion of how eachscript works. There are already lots of books like that available forCGI. While these books can certainly be useful, especially if one ofthe examples matches a particular challenge you are facing, theyoften teach <em class="emphasis">how</em> without explaining<em class="emphasis">why</em>. The aim of this book is to cover thefundamentals so that you can create CGI scripts to tackle anychallenge. Don't worry, though, because we'll look atlots of examples. But our examples will serve to illustrate thediscussion, rather than the other way around.</p><p>We should admit up front that there is a Unix bias in this book. BothPerl and CGI were originally conceived for the Unix platform, so itremains the most popular platform for Perl and CGI development. Ofcourse, Perl and CGI support numerous other systems, includingMicrosoft's popular 32-bit Windows systems: Windows 95, Windows98, Windows NT, and Windows 2000 (hereafter collectively referred toas <em class="firstterm">Win32 </em>). Throughout this book, we willfocus on Unix, but we'll also point out those things you needto be aware of when developing for non-Unix-compatible systems.</p><p>We use the Apache web server throughout our examples. There areseveral reasons: it is the most popular web server used today, it isavailable for the most platforms, it is free, it is open source, andit supports modules (such as <em class="emphasis">mod_perl</em> and<em class="emphasis">mod_ fastcgi</em>) that improve both the power andthe performance of Perl for web development.</p></div><hr align="left" width="515" /><div class="navbar"><table border="0" width="515"><tr><td width="172" valign="top" align="left"><a href="copyrght.htm"><img src="../gifs/txtpreva.gif" alt="Previous" border="0" /></a></td><td width="171" valign="top" align="center"><a href="index.htm"><img src="../gifs/txthome.gif" alt="Home" border="0" /></a></td><td width="172" valign="top" align="right"><a href="ch00_02.htm"><img src="../gifs/txtnexta.gif" alt="Next" border="0" /></a></td></tr><tr><td width="172" valign="top" align="left">Copyright Page</td><td width="171" valign="top" align="center"><a href="index/index.htm"><img src="../gifs/index.gif" alt="Book Index" border="0" /></a></td><td width="172" valign="top" align="right">0.2. What You Are Expected to Know Before Reading</td></tr></table></div><hr align="left" width="515" /><img src="../gifs/navbar.gif" alt="Library Navigation Links" usemap="#library-map" border="0" /><p><font size="-1"><a href="copyrght.htm">Copyright &copy; 2001</a> O'Reilly &amp; Associates. All rights reserved.</font></p><map name="library-map"><area href="../index.htm" coords="1,1,83,102" shape="rect" /><area href="../lnut/index.htm" coords="81,0,152,95" shape="rect" /><area href="../run/index.htm" coords="172,2,252,105" shape="rect" /><area href="../apache/index.htm" coords="238,2,334,95" shape="rect" /><area href="../sql/index.htm" coords="336,0,412,104" shape="rect" /><area href="../dbi/index.htm" coords="415,0,507,101" shape="rect" /><area href="../cgi/index.htm" coords="511,0,601,99" shape="rect" /></map></body></html>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -