CGI Programming with Tcl
暫譯: 使用Tcl進行CGI程式設計

David Maggiano

  • 出版商: Addison Wesley
  • 出版日期: 1999-12-17
  • 售價: $1,880
  • 貴賓價: 9.5$1,786
  • 語言: 英文
  • 頁數: 576
  • 裝訂: Paperback
  • ISBN: 0201606291
  • ISBN-13: 9780201606294
  • 相關分類: 程式語言
  • 已絕版

買這商品的人也買了...

商品描述

The Common Gateway Interface (CGI) is an essential technology for the development of interactive Web pages. This rapidly growing field is one of the hottest areas of Internet development, and the Tool Command Language (Tcl) is ideally suited for all aspects of CGI development. Although Perl is currently the most popular language for CGI development, Tcl is an ideal development environment. Tcl's rich set of string manipulation commands and well-defined syntax greatly facilitate the dynamic creation of HTML documents, a key aspect of CGI programming. In addition to raw power, many extensions, such as Expect, make the Tcl environment ideal for complex scripting tasks, such as automating telnet or ftp sites from inside a Web page interface. CGI Programming with Tcl illustrates the many advantages Tcl holds for CGI programmers and demonstrates how to create powerful CGI applications. This book presents a series of increasingly sophisticated applications, beginning with a simple Hello World application and culminating in Web-based interfaces to back-end databases such as Oracle. Through these examples, you will learn Tcl programming essentials and valuable CGI programming techniques.Specific topics covered include: *A complete review of the CGI specification *How to build and process HTML forms *Debugging your CGI programs *Processing form data with CGI programs *Server Side Includes--allows you to embed commands inside your HTML files Accessing databases built entirely with Tcl *Image maps--creating clickable images for navigating links *Magic cookies and the privacy issues surrounding them *Using OraTcl to provide an interface to an Oracle database *Using the Tcl browser plug-in to run code inside your browser *Using Tcl's socket support for building a Web-based client/server chat room An experienced programmer unfamiliar with Tcl can learn the language by reading this must-have reference. Tcl's straightforward syntax and similarity to C make it possible for any programmer to work through the examples. Furthermore, Appendix C provides a Tcl reference. The accompanying CD-ROM contains complete source code for all the examples in the book, as well as a CGI library that makes it easy to generate CGI programs that dynamically produce HTML Web pages. 0201606291B04062001

商品描述(中文翻譯)

通用閘道介面(Common Gateway Interface, CGI)是開發互動式網頁的重要技術。這個快速成長的領域是網際網路開發中最熱門的領域之一,而工具命令語言(Tool Command Language, Tcl)非常適合CGI開發的各個方面。儘管Perl目前是CGI開發中最受歡迎的語言,但Tcl是一個理想的開發環境。Tcl豐富的字串操作命令和明確的語法大大促進了HTML文件的動態創建,這是CGI程式設計的一個關鍵方面。除了強大的功能外,許多擴展,如Expect,使得Tcl環境非常適合複雜的腳本任務,例如從網頁介面自動化telnet或ftp站點。使用Tcl進行CGI程式設計展示了Tcl對CGI程式設計師的眾多優勢,並演示了如何創建強大的CGI應用程式。本書呈現了一系列日益複雜的應用,從簡單的Hello World應用開始,最終達到與後端數據庫(如Oracle)進行網頁介面的整合。通過這些範例,您將學習到Tcl程式設計的基本要素和有價值的CGI程式設計技術。具體涵蓋的主題包括:
* CGI規範的完整回顧
* 如何構建和處理HTML表單
* 調試您的CGI程式
* 使用CGI程式處理表單數據
* 伺服器端包含(Server Side Includes)--允許您在HTML文件中嵌入命令
* 完全使用Tcl構建的數據庫訪問
* 圖像地圖--創建可點擊的圖像以導航鏈接
* 魔法餅乾(Magic cookies)及其相關的隱私問題
* 使用OraTcl提供與Oracle數據庫的介面
* 使用Tcl瀏覽器插件在瀏覽器內運行代碼
* 使用Tcl的套接字支持構建基於網頁的客戶端/伺服器聊天室

一位不熟悉Tcl的經驗豐富的程式設計師可以通過閱讀這本必備參考書來學習這門語言。Tcl簡單明瞭的語法和與C語言的相似性使得任何程式設計師都能夠理解範例。此外,附錄C提供了Tcl參考資料。隨書附贈的CD-ROM包含書中所有範例的完整源代碼,以及一個CGI庫,使得生成動態產生HTML網頁的CGI程式變得簡單。